Ana içeriğe atla

Kayıtlar

Asp.Net Web Api - Swagger Dökümantasyon Alt Yapısı Ekleme

Backend tarafında rest api alt yapısı geliştirirken en büyük problemlerden biri şüphesiz ki bu API endpointlerini kullanacak kişilerle çok iyi iletişim kurabilecek bir dökümantasyon oluşturmak ve tabi bunun yanında kendi apilerini test caseler dışında kod yazmadan minimum efort ile manuel test edecek bir ortam olması. Daha önce .Net ile Rest Api geliştirirken Microsoft un sunduğu Help Page alt yapısından bahsetmiştim, buraya tıklayarak bu yazıma ulaşabilirsiniz. Microsoft bu tarafta bize her ne kadar hem yardım dökümanı oluşturma ve test edebilme üzerine güzel nuget package lar sunsa da , bu işi daha profesyonel, görsel ve fonksiyonel bir şekilde swagger ile yapabiliyoruz. Peki .Net Web Api projemizde swagger alt yapısını nasıl kullanabiliriz ? (Normalde swagger ın .Net e özel nuget ı olsa da uygulaması biraz zahmetli ve uzun olduğu için ben kendi bulduğum kurulumu çok basit bir nuget package üzerinden anlatıyor olacağım.) Bu işlem oldukça kolay aşağıdaki adımları izlememiz ye...

Angular5 Build Prod with base href

In normally angular2 and higher version projects building for prod with following command; ng build --prod  But sometimes we need to subdomain like domainname.com/ subdomainname / , in this situation we need to use base-href command to deploy properly otherwise it won't be work without console error. To use base-href and define subdomain whichs is work like a directory, we just need to use following command: ng build --prod --base-href /subdomainname/ with this command , we can solve this issue and deploy our project without any problem..

angular5 projemize nasıl html editor ekleriz ?

Angular5 projemize basit bir html editor implemente etmek için aşağıdaki aşamalrı uygulamamız yeterlidir. 1. cmd ekranını açıyor ve proje dosyamızı açıyoruz. örnek : cd /projedosyamız cd /projedosyamız 2. proje dosyamızda node package manager yardımı ile ngx editör pluginini indiriyoruz. npm install ngx-editor --save 3. app.module.ts dosyamızda import kısmına plugin tanımını yapıyoruz. import   {   NgxEditorModule   }   from   ' ngx-editor ' ; @ NgModule ( {    imports :   [   NgxEditorModule   ] } ) 4. ve son olarak ilgili modülü kullanmak istediğimiz html dosyamıza aşağıdaki kod parçası ile ekliyoruz. < app-ngx-editor   [( ngModel )]= " htmlContent " > < / app-ngx-editor > Kaynak : https://www.npmjs.com/package/ngx-editor

Load Git Repository to Online Repository

while uploading local git repository to online private git repository you can use the following way; cd /projectFilePath git init git remote add origin https://your .git repo url git add . git commit -m "initial commit" git push origin master

ionic cordova resources issue

When you come to resource command operation which is help you to provide all versions for android and ios icon and splash images. You may get an exception as following; ionic cordova resources android --no-timeout ✔ Collecting resource configuration and source images - done! ✔ Filtering out image resources that do not need regeneration - done! ✖ Uploading source images to prepare for transformations - failed! HTTP Error 400: POST https://res.ionic.io/api/v1/upload {"Error":"unable to read uploaded image","Width":0,"Height":0,"Type":"png","Vector":false} to solve this problem you just need to use following web site and try to compress your images then try it again, its going to work like a charm :) website:  https://tinypng.com/ Try to use resources command for ios and android as following; ios resources command : ionic cordova resources ios --no-timeout android resou...

ionic3 facebook plugin build issue

While debugging your application with new facebook plugin  in ionic3(android platform) and you may get an exception. Its mostly deal with facebook version and cordova version dependency inconsistency. To solve this problem, you just need to follow these steps  - remove facebook exist plugin and all the related files in your app folder. cordova plugin rm cordova-plugin-facebook4  - remove and re-add android plugin cordova platform rm android && cordova platform add android  - Add your facebook plugin with the following command cordova plugin add https://github.com/amritk/cordova-plugin-facebook4 --save --variable APP_ID="your facebook app ID" --variable APP_NAME="Your facebook App Name" thats all. If you have any question about this issues please feel free the left comment to this post.

asp.net mvc ve web api csc.exe not found hatası

Asp.Net MVC ve Web Api projelerinde roslyn/csc.exe dosyası bulunamadı hatası alabiliriz. Bu sorunun kökten çözümü için roslyn eklentisini projemizden kaldırabiliriz. Bu işlem için sırası ile aşağıdaki işlemleri yapmamız yeterlidir.  - Projemize sağ tuş tıklayıp "Manage Nuget Packages..." seçeneğini seçiyoruz.  - "Browse" sekmesinden "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" eklentisini aratıyoruz.  - İlgili eklenti projemize ekli olduğu için sağ kısımdan "UnInstall" seçeneğini seçiyoruz ve ilgili eklentiyi kaldırıyoruz. Projemizi tekrar publish ettiğimizde "roslyn" klasörü artık projemizde olmayacak ve problem çözülmüş olacak.