Data dodania Pytanie
2017-08-05 16:08 Is it good/bad design to join composite key with underscore in url? »
I'm looking for the best practices on RESTful API design for the following use case: Table1 Table2 Id1 Id1 Id2 Id2 Id3 Id3 N...
(2) odpowiedzi
2017-08-05 15:08 File Upload with AngularJS and ASP.NET MVC »
I am new to ASP.NET MVC and AngularJS, How can I Upload file (Image/PDF/Doc) to server Folder By AngularJS Controller with ASP.NET MVC Controller ...
(1) odpowiedzi
2017-08-04 15:08 .NET Web API, Return Data To Client, Then Process Transaction? »
I have a VB.NET Web API controller, that performs two functions: when a request comes in, it processes the request, and then returns data to the clien...
(0) odpowiedzi
2017-08-04 10:08 receive complex object and handle it »
I am working with asp.net web api, and my client side is in vuejs, i pass a object with json that is like this: [ { "key": "Table", "rows":...
(1) odpowiedzi
2017-08-04 00:08 Task vs Void In Terms Of Controller Disposal »
When I use void for the controller's return type, I see that controller is disposed before the action is completed and I get the "An asynchronous...
(1) odpowiedzi
2017-08-03 23:08 How do I get the bearer token claims that azure b2c promises? »
Background I have two applications registered in azure, one is a web-based client and the other is a web-based service. The setup is similar to the e...
(1) odpowiedzi
2017-08-03 22:08 It's worth configuring CSRF Prevention with antiforgery in JWT Backed Web Api? »
Well I have a Net Core Api project and I was trying to protect those endpoints that cause side effects on my database, I was reading a lot of XSRF Att...
(0) odpowiedzi
2017-08-03 11:08 Web API versioning URL »
I'm having a bit of a problem trying to version my Web API: [ApiVersion("1.0")] [ApiVersion("2.0")] [System.Web.Http.Route("api/v{version:apiVersion}...
(1) odpowiedzi
2017-08-03 10:08 How to auto log every request in .NET Core WebAPI? »
I'd like to have every request logged automatically. In previous .Net Framwork WebAPI project, I used to register a delegateHandler to do so. WebApiC...
(3) odpowiedzi
2017-08-02 14:08 c# mvc 5 call json web service and save on database »
Greetings i want to call a web api that returns a json string from From Controller and i want to map it on a class so i can save the data on the datab...
(3) 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-08-02 08:08 OWIN Web API authorization in User Interface »
I prepare User Interface in MVC and Web API. Authorization in Web API via OWIN is correct. In login method you can see I just log on to Web API and I ...
(1) odpowiedzi
2017-08-01 14:08 SimpleInjector verifies OK, but throws Parameterless constructor error on first request »
I've created a .NET 4.5 WebApi app and I'm attempting to use SimpleInjector. Everything seems to register OK - when I do container.Verify(), my WebAp...
(1) odpowiedzi
2017-08-01 11:08 Async controller returning too soon »
The idea here is to run some long running methods concurrently, 5 at a time. When 15 of them are done (3 blocks of 5), I should return from the contro...
(0) odpowiedzi
2017-08-01 01:08 Serialization Failed for application/xml in Webapi »
I have Updated the Question, Please see under Update 1 I am getting an error when my WebAPI tries to return the data in XML format. The JSON format w...
(1) odpowiedzi
2017-07-31 17:07 Receiving FileActionResult between Services »
I have a route returning a pdf file as a FileActionResult: [HttpGet] [Route("getPdf")] public async Task<IHttpActionResult> GetPdf() { retu...
(0) odpowiedzi
2017-07-31 15:07 Get the POST data back on Web API »
I have a Web API server that runs in c#. The httpget methods works perfectly, but I am too new to Web Api to get the post to work, and my searches tha...
(3) odpowiedzi
2017-07-31 04:07 WebApi: Per Request Per Action DbSession using IoC, how? »
Our existing database deployment has a single 'master' and a read-only replica. Using ASP.NET's Web API2 and an IoC container I want to create control...
(1) odpowiedzi
2017-07-30 20:07 How to remove Escape characters from WebAPI »
I have to work with an old product that takes strings as the response from calling outside websites. Its not JSON or XML types. Even though the data...
(2) odpowiedzi
2017-07-30 05:07 Is it possible to intersect Request.Headers with another list? »
I am attempting to intersect a list of headers: var validHeaders = Request.Headers.ToArray().Intersect(ValidHeaders.List); Where ValidHeaders are d...
(1) odpowiedzi
2017-07-30 01:07 Deserializing list objects, properties returning as null »
I'm trying to POST data to an API which should accept a List<UpdatePointHistory>. The size of the list is correct but the properties of the obje...
(1) odpowiedzi
2017-07-29 21:07 Post Array Json to .net core web api controller »
I have this code [HttpPost("[action]")] public IActionResult Add([FromBody] Player player) { PlayerService.Add(player); P...
(1) odpowiedzi
2017-07-29 14:07 The anti-forgery cookie token and form field token do not match when using WebApi »
I have a single-page app (user loads a bunch of HTML/JS and then makes AJAX requests without another call to MVC - only via WebAPI). In WebAPI I have...
(1) odpowiedzi
2017-07-29 08:07 Application Service code in WebAPI »
We are starting a new project and trying to implement some concepts from Domain driven design. We are planning to have following layers: Web Interfa...
(2) odpowiedzi
2017-07-28 17:07 Batched Media Upload to Azure Blob Storage through WebApi »
My web app currently allows users to upload media one-at-a-time using the following: var fd = new FormData(document.forms[0]); fd.append("media", blo...
(2) odpowiedzi
2017-07-28 16:07 WebApi endpoint always gives "404 not found" »
I am trying to implement WebApi endpoints in a brand new web app but no matter what I try I always get "404 not found" when trying to do a GET from sa...
(2) odpowiedzi
2017-07-28 14:07 Good practices with Dapper »
I'm a Beginner with Dapper and I have some doubts about best practices. My project is a Asp.net WebApi. Opening Connection String In this thread the...
(1) odpowiedzi
2017-07-26 22:07 How do I handle multiple parameters as an OR in a Web API querystring? »
Suppose I have this URL: api.XXX.com/cities?risk=a,b&rating=x,y What I want is a list of cities with a Risk category of A or B AND a Rating of ...
(2) odpowiedzi
2017-07-26 16:07 Self referencing loop detected for property in WebApi 2 »
I've created a Web Api to save new products and reviews in database. Below is the WebApi code: // POST api/Products [ResponseType(typeof(Prod...
(2) odpowiedzi
2017-07-26 09:07 LINQ to Entities does not recognize the method ,and this method cannot be translated into a store expression »
I have following code which get all data using EF and then try converting them to Model as below. var patients = allpatients.Select(p => CreatePat...
(3) odpowiedzi
2017-07-25 19:07 Is it always relevant to target RESTful design for a public web service/API? »
No doubt that RESTful is buzz word and seems to be a cleaver design pattern in many cases. Struggling to apply it to my own web APIs (existing and u...
(1) odpowiedzi
2017-07-25 08:07 Self-hosted WebAPI and multiple post and get methods »
I have got implemented console self-hosted WebAPI app. My controller works fine for single get and post methods. I cannot get how to implementg mult...
(1) odpowiedzi
2017-07-25 03:07 Is there a way to use enterprise library in .NET Core 1.1.2 web api »
I am planning to use Enterprise Library for database access on a Web API project which is going to be built using .Net core app. But I am unable to in...
(1) odpowiedzi
2017-07-24 20:07 When I Use from Ioc Configuration I Get Error About (cannot be used as type parameter 'TTo' in the generic type or method ) »
When I Use from UnityResolver in Web API Project , I get a error about Use from Generic Class or Interface. For example my IPersonRepository use from ...
(1) odpowiedzi
2017-07-24 13:07 SSO not working on ASP.NET WebApi self hosted »
I have a SSO provided by IIS ASP.NET MVC 5 Web App and it works with the ASP.NET WebApi project hosted on IIS, but the same Startup.cs is not working ...
(0) odpowiedzi