Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

Web 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 Article


Stand 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 Article

VS 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 Article

DataSource.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 Article


Web 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 Article

Have 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 Article

OWIN + 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 Article


Asp.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 Article


Post 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 Article

Controller 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 Article

StackOverflowException 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 Article

POST 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 Article


Creating 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 Article

Push 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 Article


How 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 Article

Why 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 Article


How 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 Article

Web 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 Article

How 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
Browsing all 4850 articles
Browse latest View live


Latest Images