Post Method is not called Web APi
Hello All,I am new in Web API. I had put some code in API controller for GET and POST. in case of GET, it is working fine. but when I call POST method it reflect the error"No action was found on the...
View ArticleWeb API 2.0 - After deploying the web servcie over server unable to get response
Hello everyone,I've deployed the Web API 2.0, web application project at local IIS server. When I'm trying to browse it via $.Ajax call from JavaScript it does not work and even there is no details in...
View ArticleIIS hosting of Web Api
HiI had created virtual directory for my Web Api project in IIS. Could you please advise what tags I need to add to my web.config in order to access web api from iis virtual directory.Thanks,Usha.
View ArticleReturn async in Web Api action
Hello,I have the following Web Api action:public async Task<IHttpActionResult> Get() { String clientId = "xyz"; String clientSecret = "xyz"; var config = new InstagramConfig("clientId",...
View ArticleIdentityModel.cs missing in new Web API Project
If I create a new Web API project using VS 2013, IdentityModel.cs is not found in the model folder. What can I do?Thanks
View ArticleWeb API 2.0 - Access the web service from android APK file
Hello everyone,We're developing mobile application for Android operating system using PhoneGap and Jquery mobile libraries. I would like this application to communicate with Web API 2.0 web service...
View ArticleWeb API and Nested JSON output help
Hello - I'm having trouble getting the output to be nested json.Data Modelpublic partial class tblPPM_Config_Items { public int ID { get; set; } public string Category { get; set; } public string...
View Article[C# - Web Api] How to built a web application for videoconference
Hello to everyone! I'm a .net development and i have to built a web application (html/javascript and web api writing in c#) that using the videoconference calls. I have no ideas how to built it.I think...
View ArticleUnion or concat 2 data collections for a single web api output
Hello I have 2 separate controllers providing a json file that is essentially the same structure. I would ideally like to consolidate the 2 api calls into 1, outputting a single json file. I am unsure...
View ArticleWeb API 2.0 - Unable to call the POST message
Hello everyone,Please know, I'm very new in Web API 2.0, I've created a web service and hosted the same on our local application server, win2012, IIS 8.0. My goal is to call this web service from a...
View Articlehow to group handling of GET,POST,PUT,DELETE for many controllers ?
hi,I have many controllers. For each controller, it have common handling, i would like to group of common handling into handling class that is similar generic class. Because i want to control data from...
View ArticleLimit List to 15,000 during model binding from controller to model
I have the below method in a controller that binds the JSON HTTP content from the request to our model:Post(Request request) { }public class Request{private List<object> myObject;public...
View ArticleHow to host an API 2.0 in another project
I've created an API that fetch data from database and then I added another project and added this API as a reference to that project, I created a simple JavaScript function to fetch the data from that...
View ArticleSend a collection ...
Can I send a collection of files or documents via WebApi or must I have an upload control that packages up the files to send them via webapi?Need lots of clarification here please...
View ArticleAPi Method...
I have an API Method that collections 1 or more files, how do I create my ActionResult method?public class HomeController : ApiController { // GET api/home public ActionResult...
View ArticleApi Controller
I need to create an api controller that accepts three parameters, how to I accomplish in my api controller?For example, when called I need customeName, customerId and ItemID to be passed to my...
View ArticleAPI Web method get collection of files....
I have an API web application that has a controller that should files when executed or called. the localhost url (not real for clicking)http://localhost:000000/api/home/ The goal is for the URL to...
View Articleweb api + OData - $filter not created by client
Hi,I have successfully deployed demo web api service using the following tutorial: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/create-an-odata-v4-endpointI can filter...
View ArticleCan't add any new controllers to the existing web api2 project
Hi all, I have created a web api2 project and added my a controller call : couple of days back and all seems work ok, but I just open up the same solution and added a new controller to the existing...
View ArticleAPI Web Service... Unit Test
I have a web api application and need to create a unit test for the methods, can someone show me how to create a unit test please.This will be a new unit test from scratch...public class TestController...
View Article