Implement Search Action in Web API and Pass a Payload and Get the Data
Hi,I would like to Implement Search Action in AccountController and Pass a Payload and Get the Data.The URl is Suppose to be:Account/1/Search/Payload:{"Amount": "500","Date":"12/11/2015"}Now this...
View ArticleWeb API some actions are not working
Hai FriendsI'm new in WEB API. I created a web api. In it i have some actions. Some actions are not working but some are working. 1 Week back I created a MVC WebApi Project and i created one action....
View ArticleStand alone API for large data return
I have been tasked with creating an stand alone API for our customer base to interact with. This API will need to on request return upwards of a million records to the customer potentially. The...
View ArticleVS 2015 OData function SQL Get filtering (parameter passing) not working for...
Hi all,I am using VS2015 OData and cannot get a simple Get function working.Is there a fix or should I go back to 'non-OData' web services?Please helpBest RegardsStewartThe following Controller Gets...
View ArticleDataSource.Error: OData: The top level context URL '$metadata#is_reporting'...
Hi everyone,I'm developping my own ODATA service and using tools such as PowerQuery or PowerBI to consume the data. It seems that they don't accept relative URL in the response body. For...
View ArticleWeb Api Individual User Accounts
hi folks,I am using asp.net 5 Latest version. I need a web api individual user accounts using with angular 2 Is there any link for tutorial or guide?I am waiting for your response. Thanks in advance
View ArticleHave created a Web API inside MVC 5 web app - how to add token?
I had the necessity to create a web api inside an existing MVC 5 app. Basically the web api is working fine. Unfortunately the token part seems to have been missed off and was not reintroduced when I...
View ArticleOWIN + MVC + OData batching issue
hi all, In this post http://damienbod.com/2014/08/14/web-api-odata-v4-batching-part-10/said : If using the OData batch handler in Web API, you need to configure this in the GlobalConfiguration in the...
View ArticleAsp.Net Web api how to create single context for each request and pass them...
I'm trying to develop a web api tier. I think that I should create a ORM context(new instance of it(singleton)) for each api request and all the operations (unit of work) use the same context for that...
View ArticlePost ODataQueryOptions from the Http Request body
Hi all, I was using oData V 2.0 earlier for this code and it works fine. But since i have migrated to oData v4.0, ODataQueryCOntext and FilterQueryOption both have changed and are not taking 2 but 3...
View ArticleController got a zero-length array
Hi, I am new to web API. I created a little tester to post an five-item array to the controller. The controller received azero-length array.Here is the view:@{ Layout = null; }<!DOCTYPE...
View ArticleStackOverflowException when running api
I have created an entity model from code first and ran the webapi on the controller that has been built using the webapi with entityframework option, to get the StackOverFlowException error in my...
View ArticlePOST method returns FileContentResult but save as dialog is not launched in...
Hello, I've written a POST method in Web API project. This POST method looks like[HttpPost] [ActionName("downloadfile")] public System.Web.Mvc.FileContentResult...
View ArticleCreating SQL query from OData filters in Web API
Hi All,I am using EF6 as ORM with OData Web API. The database is in oracle.Database is huge in size, i have more than 200 tables and then major tables (around 10 +) have more than 10 million records. I...
View ArticlePush Notification for iPhone in C#
I am trying to implement send iOs Notification service using mvc web api but not working.Error: The parameter is incorrect.Error on this lineX509Certificate2 clientCertificate = new...
View ArticleHow do I deal with this JSON
I am trying to get my head round this (whole webapi thing) :) and have a database schema that was being used for another application that I am supposed to use with the webapi. I have got the...
View ArticleWhy some one would learn web api
client call web api and web api return data in json format, or xml format etc. but people can develop asmx service which can return data in json format and same wcf also can return data in json format...
View ArticleHow do I build a pdf file/blob from byte[] via a REST call
Question: I have WebMethod as illustrated below that should return a byte[]. The byte[] then needs to be retrieved by AJAX call and display the pdf file.[WebMethod]public static byte[] GeneratePDF() {...
View ArticleWeb api test client
when we develop web api then can we run it from VS IDE ?is there any test client comes with VS IDE ?chrome has post man for rest client but i am looking for web api test client which i can run from VS...
View ArticleHow action methods are getting mapped to request
i just read a article where i got some confusion. the article url is http://www.c-sharpcorner.com/UploadFile/2b481f/how-to-consume-Asp-Net-web-api/here is the web api controller codepublic class...
View Article