Passing parameters with a space and ampersand
Could someone please help: I have a situation where I need to pass the following string "Half & Half" as a parameter to my webapiSample URI:...
View ArticleManage session for mobile app in WebAPI
Hello All, I have a webapi project where we create services for mobile application. i want to manage session or cookie for storing userdata from a request from mobile app and then check this session...
View ArticleHow should I transfer complex data using GET method?
I have a web API program that has 8 GET methods. Each method can get 2 parameters - filters and sorts.filters - a json object that contains all the params you can filter by sorts - an array that...
View ArticleSet Session/Cookie from From Client in WebAPI services
how to set and get session/Cookie from mobile client to webapi MVC
View ArticleOData query option like "$select" not working when expecting xml resposnse
HiFacing an issue while working on ODATA with xml response. Getting internal server error at client side. I debug the code at server side nothing went wrong here, proper response object is generating...
View ArticleAspNet Owin Cookie authentication from mobile web view
I am working on a MVC web app that requires authentication(Cookie) and a web api that uses token based authentication(Bearer). I also have an IOS app that communicates with the Web Api. So far...
View ArticleWEB API 2 project - OWIN GetUserManager returning null => Identity 2
I am trying to access the ApplicationUserManager and the ApplicationRoleManager from the OWIN context. Both these methods are returning...
View ArticleHow to see if user is authenticated
Hi guys what i want is really simple but i cant find how to solve it, i have a mvc application that is connected to a web api my database is hold on the web api the rest is on my mvc application, what...
View ArticleRefresh Token Web API
I have a web API in Server, and MVC in Client. I issue access token with 30 minutes. How to khow whenever i need refresh token ?
View ArticleUnit test in web api controller
In asp.net core rc2. I have a web api controller for GRUD. [Route("api/[controller]")] public class RulesController : Controller { private readonly IRulesRepository _rulesRepository; public...
View ArticleToken based Authentication
How to do Token based authenticate with mobile client without using database. where is the token stored in server side.
View ArticleCalling jersey api in .net
Hi, I tried to call jersey api from .net. It resulted in continues loading in browser at lineHttpResponseMessage response = await client.GetAsync("/xxx/yyyy/zzz:476");how to call jersey api from .net.
View Articlehelp in implementing owin in my WebApi
Hello All,I am new bie in WebAPI. I am just starting the implementing new webapi project. for implementing Api i have follow below url to...
View ArticleFully asynchronous process
I understand the basic of how to use asynchronous in asp.net, and use it everyday.Now I expect that I could do better, fully decouple the request and response in asynchronous way, like what we had...
View ArticleIdeas for tying up security loose ends in Web Api project
When you have a web project that hosts HTML content in ASP.NET, you can specify a default document and an error redirect using the customErrors setting in system.web.However, I have a Web Api project...
View ArticleASP.Net Web API Authentication using OAuth
HiWe have planned to implement authentication in our API using OAUTH. For this purpose I read so many articles on web to explore it. After read these articles what I am understanding isSend credentials...
View ArticleWhere do I find system.web.Http
I have just added a WEB API Class and have an error where system.web.Http is unknown. Dumb question I know but how do I locate this namespace?
View ArticleHow to consume JSON with header in REST API?
Hi, I have a JSON definition with header and the details:Header Definition: BatchName : stringPeriod: stringDetail definition:ID: IntCategory: stringAmount: FloatWhat method should I use to serialize...
View ArticleGetting Started with ASP.NET Web API2 - IIS 10.0 Detailed Error
Hi,I got the following error and I do not know what to do, especially the appcmd. I googled and found this :<div class="_yXc">Click Start, and then click All Programs. Click Accessories, and...
View ArticleDeveloping a REST API - best practice for structure and routing?
Hi all,I'm developing a simple RESTful API as a prototype.At the moment I have only 3 repositories:Clients (/api/clients) Sites (/api/sites) Cables (/api/cables) A client can have many sites (physical...
View Article