Data dodania Pytanie
2017-10-08 22:10 ASP.NET Web Api 2 routing issue »
I really can't understand why it does not work. I have the following code: public static class WebApiConfig { public static void Register(HttpCon...
(2) odpowiedzi
2017-10-07 12:10 valid model c# properties »
somebody know, how to not allow other properties in controllers using annotations or some other method? for example, I have a model [required] publ...
(2) odpowiedzi
2017-09-29 23:09 Property of Observable is Empty »
I've worked through most of the Heroes tutorial and have decided to add a Hero Tracker which displays a map with the Hero's location on it. This work...
(1) odpowiedzi
2017-09-29 21:09 Response is undefined »
I've followed the Heroes tutorial and I am now attempting to retrieve my hero data from an MVC web api rest service. I have modified the GetHeroes() ...
(2) odpowiedzi
2017-09-18 19:09 How to extend IdentityServer4 workflow to run custom code »
I have a basic Identityserver4 implementation based on the quick start sample. In my startup I have the following: public void ConfigureServices...
(0) odpowiedzi
2017-09-14 08:09 ASP.NET Web API 2 custom routing to specific method »
How can I configure routing in ASP.NET Web API to route it to specific method in controller with GET method? http://mysite/healthcheck Registration ...
(4) odpowiedzi
2017-09-03 22:09 WebAPI with Lazy Loading »
I was following a tutorial from Pluralsight called "Building Web Apps & Services with Entity Framework and Web API". I followed the tutorial but ...
(0) odpowiedzi
2017-09-01 15:09 asp.net mvc web api help page not populating for given route »
I am having difficulties having the help page populate for a web api controller. The only method in the controller is the following: public HttpRespo...
(1) odpowiedzi
2017-09-01 02:09 How to prevent webapi endpoints for period of time »
I'm using web api/mvc 5 and trying to stop any further endpoints for a period. Is it possible to do this for a global filter based on ActionFilterAtt...
(1) odpowiedzi
2017-08-31 11:08 .NET Web API model binding prefixed properties »
I have a view model and models similar to this public class SupplierViewModel { public Supplier Supplier { get; set; } //Select Lists and ot...
(1) odpowiedzi
2017-08-25 19:08 How to access User in a service context in web API? »
If you are in a controller context, you can access the current authenticated User. Take an article such as Get the current user, within an ApiControll...
(1) odpowiedzi
2017-08-10 05:08 C# Web API POST method for Json Multiple Array »
I am working on a project which requires POST method for a multiple-array Json where the data are located on 5 different relating tables with FK. her...
(2) odpowiedzi
2017-08-02 13:08 is it possible to return sequential responses from asp.net web api or WCF or Restful Services? »
is it possible to return multiple sequential responses with asp.net web api or WCF or any other possible REST methodologies? So basically there will ...
(1) odpowiedzi
2017-07-25 12:07 Why is Entity Framework generating the following nested SQL for Azure Mobile Services Table Controllers »
I'm trying to get to the bottom of an entity Framework issue when using it with a TableController I've created the following setup. The basic TodoI...
(0) odpowiedzi
2017-07-21 11:07 C# Web Api 2 How to redirect request to default controller »
I've got a situation where most of the requests will be processed with dedicated controllers. config.Routes.MapHttpRoute( name: "Data...
(1) odpowiedzi
2017-07-05 15:07 ASP.NET Web API 2 and partial updates »
We are using ASP.NET Web API 2 and want to expose ability to partially edit some object in the following fashion: HTTP PATCH /customers/1 { "first...
(0) odpowiedzi
2017-07-04 12:07 Authentication and Authorization in asp.net core WEB API »
I am new in asp.net core and want to implement authentication and authorization in WEB API 2 project. I am little bit confuse to use basic authenticat...
(1) odpowiedzi
2017-07-01 20:07 Calling web api2 from angular 2 with CORS post request »
I am trying to bind below api response to html, { "ScreenData": { "ScreeNo": 101, "MovieName": "Movie101", "SeatRows": [ { ...
(1) odpowiedzi
2017-06-28 13:06 Pass datetime from angular $http.get request to Web API 2 controller »
I have a web API 2 controller: [HttpGet] [Route("api/MyRoute/{date:datetime}")] public IHttpActionResult Get(DateTime date) { return Ok(date); } ...
(1) odpowiedzi
2017-06-23 21:06 The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json in Postman »
I'm doing a WebServices with WebApi 2 EntityFramework in MVC .... and creating the UI controller I have no problems, but I create the WebApi controlle...
(0) odpowiedzi
2017-06-20 14:06 Can not download .apk file from asp.net web api in https »
My Web API code as below,working in http mode but do not work in https mode .No error show,just give me a http 204 state code,can not download apk f...
(0) odpowiedzi
2017-06-03 18:06 REST API - should JSON content be HtmlEncoded? »
We have a setup with angular front-end app and asp.net core web api backend. API responds with json. Question is, should json properties be html encod...
(2) odpowiedzi
2017-05-31 18:05 How to provide extra methods for returning IHttpActionResult? »
I have an ApiController that returns OkNegotiatedContentResult<T> with a resource collection, paginated. Naturally, there will be more methods t...
(1) odpowiedzi
2017-05-31 08:05 Get Origin when request made internally instead of browser »
I am making request from one web API to another. I want that only first API can make request to second API, other should not allowed to do so. I have...
(1) odpowiedzi
2017-05-30 22:05 http get method does not supported when using datetime parameter »
I have Webapi service controller that supports two get method which distincts by parameter Controller public class DailyRecordController : BaseApiCo...
(2) odpowiedzi
2017-05-29 08:05 Returning single object and string from web api controller method »
I am in a situation where i need to return the single object along with string .. I am very new to web api and just could not be able to figure it out...
(2) odpowiedzi
2017-05-28 11:05 Why Web Api (.Net Core) always return JSON ignored the value in ContentType? »
I have 2 web APIs and they have the exactly same code and same references. The first one (called Project A) runs under .net 4.6 and is the old web ...
(1) odpowiedzi
2017-05-26 21:05 Web API not parsing get parameters correctly »
I have the following url http://localhost/api/map/tmc/identify? geometry={x:-112.0469856262207,y:33.3926093953406, spatialReference:{wkid:432...
(1) odpowiedzi
2017-05-20 21:05 multiple post methods in same controller »
I'm trying to create web api with multiple post actions. I have 2 post actions [HttpPost] [ActionName("Search")] public HttpResponseMes...
(3) odpowiedzi
2017-05-20 17:05 Cordova Contact with Database »
Below is my code which consist of Javascript and WebAPI,I am trying to check the local phone contacts with my Database.I am using Cordova Contact AP...
(0) odpowiedzi
2017-05-16 15:05 Web Api 2 OWIN Selfhost handle multiple concurrent requests »
I have a selfhosted web api using OWIN, and I seems to struggle on concurrent connections. When I run a stress test with 50 concurrent get events, the...
(1) odpowiedzi
2017-05-13 09:05 Send multiple response back for a POST API request »
Is there a way to send back a file (.pdf) and JSON data in the body for a POST WebAPI request in .NET ? ...
(2) odpowiedzi
2017-05-12 12:05 Web API 2.0 Exception Handling »
I am using Web API 2.0 to create my own project. My Api contain ability to Add , Get and book product. I Want to handle exception but there is some i...
(2) odpowiedzi
2017-05-05 17:05 How to return Datetime correctly in WEB API from Database »
I have the following entity which has 2 datetimefields.. public class Contactos { public int IdContacto { get; set; } public s...
(3) odpowiedzi
2017-04-25 07:04 REST API Http status code best practices »
We are writing a REST API that's going to be exposed publicly and used by lot of third party developers. I am looking at best practices for http statu...
(3) odpowiedzi