Most voted "asp.net-web-api-2" questions
13 questions
Sort by count of
-
51
votes2
answers1072
viewsIs it possible to process data receipt in Camel Casing using Odata?
In the method Register class WebApiConfig i have configured a CamelCasePropertyNamesContractResolver public static void Register(HttpConfiguration config) { //Resto do código removido para brevidade…
-
7
votes2
answers222
viewsUpdate model partially with Webapi2
I am starting to develop a REST API using ASP.NET Webapi2. In my controller, I’m using the method PATCH to apply partial changes to a model. I have a method that is this way [HttpPatch]…
-
7
votes1
answer144
viewsShare types between API and client application
I am developing a REST API using ASP.NET Webapi 2 and, as I come from the old SOAP standard, I’m used to type sharing between the API and the client. That is, when referencing my service in the…
-
3
votes2
answers200
viewsPatch Methods with Route and Authorize - webApi
I am building a project with webApi2 using Oauth. The system has (for example) User Registration (default), with permissions to View, Edit, New, Enable, Inactive, Delete. The standard methods of…
-
2
votes0
answers959
viewsWhat to do when the generated token expires?
I’m developing an API rest with the Framework Asp.Net Web Api 2, using Owin. I have an app android as the client. In this case, my system has users and passwords and authenticates normally. I want…
-
1
votes1
answer86
viewsWebapi 2.0 - Apicontrollers in another Assembly do not suffer mapping if runAllManagedModulesForAllRequests="false"
I have an app Webapi2 that implements some Apicontrollers. This same application references a Assembly that implements some more. All of these controllers utilize Attribute Routing, as in the…
-
1
votes1
answer96
viewsHow to make a Custom Attribute in a webapi get the parameter passed via C#URL
I am creating a Custom Attribute in a webapi to validate a value and I would like to know if you can capture this value from a GET request. I wanted to do it that way: [Validacao] public Empresa…
-
1
votes0
answers32
viewsDepencyresolver problem when using Testserver, difference between instantiating Httpconfiguration and not instantiating
I have a simple authorization filter that to get an instance of a service I require in GlobalConfiguration.Configuration.DependencyResolver. Thus: var service = GlobalConfiguration.Configuration…
-
0
votes1
answer281
viewsWhen testing my web API C# ASP.NET locally on Fiddler it returns an error 404
I am creating a stock control system with integration of android app,the connection is being made through a Web Service API. However I can not test the methods that exist in it to see the returned…
-
0
votes1
answer86
viewsDoubt Verb GET Webapi
Currently I have some compositions in my model that make relationship with other tables of my bank. When I went to assemble the get to bring me all the related data, I had several problems and…
-
0
votes0
answers743
viewsWEB API 2 works on the localhost but not on the server
I’m starting with .NET Web Api 2 using .Net Core. In the Postman when I make the request on the localhost of my Webapi machine returns me a status 200 ok, but when I do on the server with the same…
-
0
votes0
answers20
viewsWenxamarin - Web API
I’m trying to make the code of the Post Api and I’m not able to save the information, since it comes from a relationship between two tables. It is a sales system, where I have two tables, one that…
-
0
votes0
answers247
viewsSystem.Missingmethodexception: No constructor without parameters has been defined for this object
I’m getting the following error: System.Missingmethodexception: No constructor without parameters has been defined for this object. My Controller: using BecomexTeste.Models; using…