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

Manage multiple hit(more than ten hit per second) on post method

Hi all,In the api with post method i just pass the call to sql through BL and DL, There is a procedure in sql which takes care of creaing a custome id and inserting the value in table. now the problem...

View Article


How to call different Get methods from web api controller

public List<Category> GetCategories(string AppId, string AppToken);public List<SubCategory> GetSubCategories(string AppId, string AppToken, string CategoryID);public Stream GetPubMsg(string...

View Article


how people work with web api with mvc project

when we create mvc project then web api related files should be there or do i need to create a separate project in same solution for web api?i like to know mvc apps will interact with web api or web...

View Article

Geospatial Support in OData Web API Services

HiIs there any support in Geospatial OData queries such as:/Stores$filter=Category/Name eq "coffee" and distanceto(Location, POINT(-127.89734578345 45.234534534)) lt 900.0or/Stores$filter=Category/Name...

View Article

Consuming Odata Service, Getting Unknown function 'cast'.

I have a VB.Net Web Api OData service which works fine.  I have a WCF web service project which has a service reference to the OData service. I'm trying to query a table on a nullable field and I'm...

View Article


How to send a Json object (not in url) and an image to Web Api Service from...

How to send a Json object and an image to Web Api Service from Windows 8 Apps.I don’t want to send as a parameters in url query string since the data might be too huge in my case. So I need to send an...

View Article

How Could I add others columns to AspNetUsers table genarated by Asp.Net...

Using Asp.net 4.5.1 ans VS 2013 Express, I integrated Asp.Net Identity tables with my existing database. Now, I want to know how to add others columns to AspNetUsers table 1- So is it possible to do it...

View Article

Which project to connect to a self host web api returning html file

Hi,I'm creating an app that has to present a html page with charts.Initialy i've created a web api to do it, but i was later informed that it as to be self hosted, so i convert it to a console...

View Article


How to make a parameter optional in Web Api

I want to make SubCategoryID as optional in the below code.[HttpGet] [Route("Catalogs/GetItems/{AppId}/{CategoryID}/{SubCategoryID}/{Start}")] public HttpResponseMessage GetItems(string AppId, string...

View Article


With the very latest VS2013 Update 2 WebAPI sample application how can I do a...

I just downloaded the latest Update 2 and looked at the sample application.  Everything looks different and with this I see a lot of methods for external logins. There is an [Authenticate] decoration...

View Article

Two factor authentication customization

Can we customize the 2 factor authentication in web api 2 to be used ONLY when A USER REGISTERS for the first time OR the user changes the e mail address OR phone number. I dont want this feature to be...

View Article

Post xml to webapi with special chat it didn't work

here is my code:model like this:public class TestData{public string Id { get; set; }public string Url { get; set; }}and the controller:public IHttpActionResult Post([FromBody]TestData model){if (model...

View Article

Using Web Services in MS Access

Hi,I am trying to validate multiple addresses in an Access 2010 database. Essentially, what I am trying to achieve is to have a button (in a form) that when clicked, the web service will be consumed...

View Article


Insight for designing my api

I'm building an api like the following:GET api/scores -> list of the scoresGET POST PUT api/score/:id -> a particular score (mapped to ScoreController)GET api/score/:id/witnesses -> the...

View Article

Unable to call WebApi method from jQuery when deployed in IIS

Hi All,The call to webapi method fails when the application is deployed in IIS but works fine in local.Something is blocking when deployed in IIS. There is other version of same application which is...

View Article


Backdoor login

Hi,does someone have expirience in implementation backdoor login functionality?Or, this is easier :)Application Admin users have possibility to login via backdoor.How to check in WEB API does user go...

View Article

ASP.net Web API talk

we need to give a tech talk on asp.net web api. I have not worked on it. Request your guidance as to how to proceed with the presentation. Please help.

View Article


Getting User Claims in the ApiController

I can't really find any examples for this, and I think it's very easy, but I want to get all my claims, in my controller.I just don't see how to get it from the User variable.  I can get the isInRole...

View Article

WebApi Method with multiples list

Hi,I need a webapi method with a parameter for send multiples list. Example = List<Client>, List<Diagnostic>, List<Customer>.  I Haved tried with a dictionary Dictionary<string,...

View Article

Do I always want to have a auth server for OAUTH2 or should I make my own...

If I want my phone gap app and my html SAP web api site to use this token, do I need to create a auth server like the thinktecture one i can download?Can I just pass my custom bearer token to it and...

View Article
Browsing all 4850 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>