Data dodania Pytanie
2017-01-11 21:01 POST from Typescript to Web API API, unable to pass a JSON Object »
I am trying to pass a JSON Object from a typescript POST call to a Web API method. Fiddler shows that the object has been converted into JSON and the...
(1) odpowiedzi
2017-01-11 12:01 Store List in memory accessible to all users »
So I want to keep a list in memory, with a get and post method. All users must be able to post and read from the same list. I've looked into HttpC...
(2) odpowiedzi
2017-01-11 06:01 How to generate Asp.net User identity when testing WebApi controllers »
I am using Web API 2. In web api controller I have used GetUserId method to generate user id using Asp.net Identity. I have to write MS unit test for...
(1) odpowiedzi
2017-01-10 15:01 Getting PUT and DELETE verbs in WebAPI2 to work on IIS 8.5 »
I am attempting to publish code to my company test web server and I'm getting a multitude of errors returned from IIS when attempting to call any meth...
(2) odpowiedzi
2017-01-10 13:01 Passing Custom Object from VB6 to Web-APi and get returned xml message »
I am having a problem passing a custom object from vb6 to a web-api. In debug mode I can see that the correct Action method is being called in the Web...
(0) odpowiedzi
2017-01-10 08:01 C# Implicit Operator not working with reflection »
I am working on a requirement where in I need to check my ASP.NET Model Property for a value 000000.If the value is 000000 then it should be displayed...
(2) odpowiedzi
2017-01-09 21:01 Calling an API action from another API, reading the json response and adding some extra properties to it »
I have a .netcore web api(localApi) that calls another web api(remoteApi). remoteApi returns json and my goal is to add a new property to that json an...
(1) odpowiedzi
2017-01-09 20:01 How to prioritize the reponse over request in ASP.NET Web Api »
I have a code that looks something like this: class SomeController { HttpClient client = new HttpClient(); public Task<dynamic> SomeActio...
(0) odpowiedzi
2017-01-09 17:01 Fiddler doesn't send Authorization header? »
I'm using WEBAPI (asp.net) with vs2015. In my web.config I have this rewrite url rule which redirects HTTP to HTTPS (I know I can do it via HSTS but...
(0) odpowiedzi
2017-01-08 18:01 How to use multiple GET action in a WebApi? »
Well I am actually trying to learn the WebApi and suppose if i have a scenario where i have two get methods like this CONTROLLER public class Employ...
(2) odpowiedzi
2017-01-08 17:01 Reusing The dbcontext »
I have seperated my business logic classes from the controllers so that controllers contain as little business logic as possible. But since I want to ...
(1) odpowiedzi
2017-01-08 09:01 Get data from a table after joining based on null value of joined table using LINQ »
I have some tables like "Job" "AppliedJob" "JobOffer" "Contract" "Employeer" Description: When employeer post job it is stored in "Job" table with h...
(1) odpowiedzi
2017-01-07 19:01 Multipart request rejected by Web API »
I'm trying to send a Multipart request to a Web API using HttpWebRequest. The request I'm sending has the following format: ----------636194206488346...
(1) odpowiedzi
2017-01-07 16:01 Inject many classes to controller using ninject »
I have following code in my WebApi project public class HomeApiController : ApiController { private WebSettingBll _webSettingBll; ...
(1) odpowiedzi
2017-01-07 03:01 PostAsJsonAsync not sending request when awaited »
I have a ServiceInvoker which calls a Web API (POST endpoint) public async Task<HttpResponseMessage> InvokeService(string url, string action)...
(1) odpowiedzi
2017-01-06 18:01 Is using [FromBody] on my back end to recognize a WebAPI parameter good practice? »
I've got a front end WebAPI written with angular and TypeScript that looks like this. removeSubset(id: number): ng.IPromise<any> { ...
(2) odpowiedzi
2017-01-06 16:01 Calling web api with client certificate from another web api »
Scenario: User talks with WebApi called 'Gateway' by angularjs client. 'Gateway' is like a facade or a proxy, so all requests from User to 'Gateway' w...
(1) odpowiedzi
2017-01-06 11:01 Using unity DI in both web api and class library »
I am creating a new web api project. In this i am using two more class library projects apart from web api project Like this: MyBlog.API (Web API pro...
(2) odpowiedzi
2017-01-05 20:01 Web Api How to add a Header parameter for all API in Swagger »
I searched for possible ways to add a request header parameter that would be added automatically to every method in my web-api but i couldn't find a c...
(1) odpowiedzi
2017-01-05 19:01 How to get ODATA to serialize NotMapped property »
I have a WebAPI backend that provides inventory information, etc. to various clients, using ODATA v3 (I cannot use v4 due to a restriction in a compon...
(1) odpowiedzi
2017-01-05 04:01 HttpClient PutAsync to update a field using RestAPI »
We have a third party API which has both the GET and PUT methods on it.The third party API returns response and accepts only in XML. The api looks lik...
(1) odpowiedzi
2017-01-04 17:01 Ensure that WebAPI2 routes are matched before MVC Routes »
I have a web application which uses both MVC and WebAPI2. I would like for requests to always be matched up with WebAPI2 attribute routes before matc...
(0) odpowiedzi
2017-01-04 15:01 ASP.NET Web API Globalization Input Format »
ASP Web API and ASP Controllers have auto conversion for inputs: [HttpGet] public IActionResult Get(decimal? money, DateTime dateTime){ // some l...
(1) odpowiedzi
2017-01-04 10:01 Are WebApi 2 request calls processed in logical threads of execution from stack? »
When ASP.NET Web Api 2 processes requests in asynchronous manner are they considered logical threads of execution? I.e. does setting up CallContext...
(0) odpowiedzi
2017-01-03 11:01 How to use Route in Controller Level »
Here i'm trying to call WebApi Controller using [Route] attribute Why is http://localhost:57997/Hello/Jan/1 not a configured route while http://loca...
(2) odpowiedzi
2017-01-03 10:01 Exception trying to use attribute routing with autofac »
I have a problem with dependency injection when I'm trying to add custom route attribute on my action. Everything is working fine when I'm trying to u...
(1) odpowiedzi
2017-01-03 08:01 How to Read Respose form a WebAPI in ReactJS »
I'm not able to read the Response in the ReactJS code, but the API Call is returning the proper JSON data with Response Code: 200 My ReactJS code is ...
(1) odpowiedzi
2017-01-03 03:01 what's the issue here?? webapi + angular + post »
Something weird is happening .... and I don't really understand why.... This post works only if change the id parameter type from int to object. I kn...
(1) odpowiedzi
2017-01-02 14:01 Adding different templates in a table with angular 2 »
I am building a generic table control that I would like to be able to use across many different forms. However some of the different rows will need di...
(2) odpowiedzi
2017-01-02 13:01 WebApi different DTO for Get and Post »
Is it ok to have different DTO's for GET and POST actions ? The reason for this is there is usually a vast difference between these two data models. ...
(1) odpowiedzi
2017-01-02 13:01 Get response data from SendAsync method ASP.net web API Message Handlers »
I want to fetch returned data from Web api and save in my database. My Message handler code is here: protected override async Task<HttpResponseMe...
(1) odpowiedzi
2017-01-01 20:01 How can I get ASP.NET Core WebAPI method to bind to a model's boolean field? »
I have a form that I'm posting to my WebAPI endpoint using JQuery: <form> Email: <input type="email" name="email" /><br> Name: ...
(2) odpowiedzi
2017-01-01 12:01 No database provider has been configured for this DbContext for get method in Asp.netCore »
I create an web api project by Asp.net core, and i added an api controller to it(by the name BlogController), in blog controller i have a get method G...
(1) odpowiedzi
2017-01-01 06:01 CORS Error on browser back button »
I have a ASP.NET Web API 2 Service. And multiple client(angular) applications talks to that service. the applications and the service are published on...
(1) odpowiedzi
2016-12-31 19:12 Get value for each of array from another table in Web Api LINQ-Asp »
I have a 'Skill' table where i store skills. And in 'Job' table i store all required skill when post job lile UpWork. Employeers have checkbox to sele...
(1) odpowiedzi