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

Securing token end point for OAuth based authentication in Web API

Hello All,I have a pretty basic question related to token end point for OAuth. The default token end point provided as part of webapi template project needs to be accessed with login credentials(access...

View Article


Dates not being serialised as UTC when OData Query has $select parameter.

HiMy WebAPI OData endpoint is doing something strange when it's serialising dates.If I don't add a select to the query, for example, http://localhost:50469/efodata/Jobs?&$filter=JobId%20eq%2067,...

View Article


odata enum and typescript

odata returns an enum as a string representation of a value. ex: Result.EnumValue = "First"Typescript configures enums as an interger representation of a value. ex: enum EnumValue { First = 1, Second =...

View Article

How to Connect Web API to UWP (Universal Windows Project) C#

How do I Connect Web Api to UWP to get connected to Database. my database is in SQL Server so I want to connect Sql Server database by using Web APi and I already have website the contains my database....

View Article

Serialization using MediaTypeFormatter exposes private members of classes...

Refer to this http://www.asp.net/web-api/overview/formats-and-model-binding/json-and-xml-serialization for a great description of serialization in ASP.net. The issue I am raising could become a...

View Article


Can you edit data with Web API???

Why is there no information on how to edit data with the web api? I just want to use Hurl.it to edit some data and it does not work - I get a 400 error! What is the point in having an API if there is...

View Article

I need to update data in a table - I use Web API 2 - how do I do it?

I need someone who actually knows how to do this. This is the story:1. I have a database2. The database is exposed using Web API 23. There are records in the tables of this database4. I need to edit...

View Article

This is a method that is inside web api controller - how do I use it?

// PUT: api/Things/5 [ResponseType(typeof(void))] public async Task<IHttpActionResult> PutThing(decimal id, Thing thing) { if (!ModelState.IsValid) { return BadRequest(ModelState); } if (id !=...

View Article


Could someone please provide a simple example of how to update using hurl.it?

I can post a value fine using hurl.it but as soon as I try to use PUT to edit the entry it just gives a 400 error each time. Is there some documentation of how to do this? I cannot understand why it is...

View Article


Controller that combine 2 or more entities

Hi,what is the best practice to create a controller that get data from 2 or more entities,let say I have Operators,Sales,SalesDetails,ProductsI need to get operators and current opened sales count,...

View Article

Creating separate pages for each account

HiI am new to web API and I am not sure whether it is possible in Web API.I have an application where I need to create a page for each user of my website. Means if there is a user named JOHN, I need to...

View Article

authentication and authorization for individual account on web api

hi, experts, I just read Secure a Web API with Individual Accounts and Local Login in ASP.NET Web API 2.2 (http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api)in the artical, it...

View Article

Beginning Web API project design question

For a few years I have developed and maintained a large ASP.NET web forms application with 3 layers: Presentation, Business logic (BLL) and Data access (DAL).  I am looking at creating a Web API to...

View Article


web api - implement for web portal

Hi, experts, I am going to write a web portal that includes basic user login , logout, user management, user group management, and some core functions.I would like to use web api (.NET framework 4.5)...

View Article

Removing Server HTTP Header in OWIN Self-Hosted Application

I have a application self-hosted OWIN application and I want to remove the Server header ("Microsoft-HTTPAPI/2.0") from all responses. When searching this on Google it looks like a very easy task e.g....

View Article


Issue on Posting UTC DateTime to Web API add up 1 day

Hi,I'm trying to post a data that has UTC DateTime but when it's translated in WebAPI it's adds 1 day on it. I'm not sure what should be doneJavaScript $.ajax({ url:...

View Article

Web API authentication

Hi All,In my task more related to authentication while accessing API. this is my scenarios.1. I wanna expose API like to validate user credentials and response using ASP.Net web API.2.   Based on API...

View Article


Using WebAPI unable to add user in windows azure active directory

I am facing one issue regarding windows azure active directory.Actually I am trying to add user to azure active directory using webAPI. While I am running WebAPI 's particular method for adding user to...

View Article

Someone is having difficulty making an account through my web api 2 in SWIFT...

I have a Web API 2 and MVC app on the same system. When someone tries to make an account through an Apple device using swift they get an error regarding the lack of https. It is only a uni project so...

View Article

Web API removes NULL values from response

Hi all,I am using xml formatter and returning xml by converting dataset to xml from WEB API. Web API removes NULL columns from the output.In json formatter we can have below code to include NULL values...

View Article
Browsing all 4850 articles
Browse latest View live


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