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

[URL] : Http 400 + URL

Hello,When I try to call my service with this URL with Fiddler and...

View Article


How to accept field name - Item[0][column]=0 from the url on WebAPI?

Hi,I am using a third party tool in my MVC View and the tool is posting data via URL in the following format - &Item[0][column]=0&Display[0][dir]=ascWhat parameter should I create in my Post...

View Article


Secured Remote Password Protocol in Web API

Hi,I would like to get some examples on implementing secured remote access protocol in Web API application. Currently passing username and password over the wire using basic authentication in encoded...

View Article

Set bool = false if any properties fail validation?

I have a bool property in a class that should be set to false if any of the properties in that same calss failed validation. I am using the ModelState object to record the validation errors. Any ideas...

View Article

Caching in Web API

I have got a requirement in which i have to write a service which accesses data from third party data source and one of the instructions given by client isCalling the third party data source is costly...

View Article


WebApi 2.1 PUT method throw error 415.

I'm trying to update data using WebApi PUT method. My code working fine before, but suddenly I start to get this error."Message":"The request contains an entity body but no Content-Type header. The...

View Article

Asp.Net Identity 2.0 with Web API

Hi,I am trying to add user roles with my identity in asp.net. So far I have created my site following the site - http://www.asp.net/web-api/overview/security/individual-accounts-in-web-apiMost of my...

View Article

Authentication and Authorization Filter in Web Api

Any example for implementing Authentication and Authorization filters simultaneously?Authentication Filter:http://www.asp.net/web-api/overview/security/authentication-filters

View Article


WebAPI: How to replace '_' in Request URI for JSONP callback with word...

The Request URI coming to my Web API contains '_' to define the callback function name(eg. .../?_=callbackfunctionname&..).Is there anyway to replace it with 'callback' before it...

View Article


Post Data with Ajax works in Windows not in Apple. Any idea?

Hello,On a page I am calling an ASP.NET Web API action as follows:$.post('/api/mail/send/', { '': $('form #mail').val() }).done(function () { $('form #send').addClass('sent').attr('disabled',...

View Article

Regex to repalce all the chars after "]."?

Hello, I need to create a regex pattern that will remove all the chars after the chars ".]". Any ideas?

View Article

User Roles in Token based authentication

Hi,Is it possible to authenticate a user and provide a token based on his/her role. Eg:User1-> AdminUser2-> GeneralI want to provide admin service to user1 and restrict user2 from accessing these...

View Article

WebAPIconfig for different parameter name for two controllers

Hi , I want two different controllers with two different parameter name I configured the WebAPIConfig as below but its not working. First one with parameter name as id and second with parameter name as...

View Article


Web API and route mapping

How do I got about allowing my application to accept more that just ID in controller functions? Here's an example. If I write this function public IHttpActionResult GetBadge(string id) { var badge =...

View Article

How to implement privilage based security in web api?

Hi All,           I have requirement where i have some users, roles, privileges to access resources. I need to implement privilege based security for web api, if user passes some means of credentials...

View Article


MVC, WEB API, Javascript

Create a website that has the following: 1. Landing page that displays a list of machines (name, description) 2. Each machine has a link to show its details. (Use Asp.Net MVC).Display machine details...

View Article

cdn on webapi

I want to get css and js files from another website like web api. Better to justput the file on theserver, orto returnit from theapi (as itisimplementedin the codewith a maximum capacity?)? Give code...

View Article


REST service returns Json with extra values

Hi all,I followed a tutorial on creating REST service. Afterwards, I created my own using my edmx model. But when I view the json results, there are extra values which I think gives me the problem of...

View Article

How To collect IOPN from payment gateways

Hello I am unable to identify where I am mistaken as Trying to collect data Instant payment notification from Checkout by Amazon.The question is how to recieve http post request made by CBA on our...

View Article

OData V3 action in ASP.NET web api doesn't get trigger.

Hi All,I am using OData V3 endpoints using asp.net with webapi 2.2. I have successfully implemented CRUD operation with it. Now, I would like to add some custom actions along with CRUD operations. I...

View Article
Browsing all 4850 articles
Browse latest View live