Get URL of requesting website in WEB API 2
I need to get URL of requesting web site in My WEB API 2. I need to do this because of security. I want to response to the request which are coming from the URLs that are registered on my server.In Web...
View ArticleHow easily secure web api with token auth
i am familiar with form authentication. in form auth when we access any protected resource then login UI comes and user type credentials and credentials checks at server side and form auth cookie send...
View ArticleCreate crystal report (RDLC) in Web API
Should i create a crystal report in Server Web API orI just send data to Client, and It will create crystal report ?
View ArticleMVC web api or java Web api
Hi All,i have been developing mvc webapi more than 3 years. now i am going to developing webapi using java.now i need to know what is very good than other according to development time ,testing...
View ArticleNo HTTP resource was found that matches the request URI
Hello all,I was trying to develop web api but at the point of testing this error generated{"Message":"No HTTP resource was found that matches the request URI...
View ArticleHow could i give custom name for my web api action
i am new in web api. i have seen people give web api action name like Get() Post(), Put() etc but if i want to give action name like GetCustomers(), GetCustomerByID(), GetCustomerByName() etc then can...
View Article[FromBody] is always required for post type action
if we omit the [FromBody] attribute from action then what will happen ?public void Post([FromBody]string value) { }for complex type argument the [FromBody] is used for not.....suppose i am sending...
View ArticleHow to inject repository by Unity ID
please discuss with code sample that how to inject repository dynamically in controller by Unity IDnow i am doing things like this way. public class CustomerController : ApiController { static readonly...
View ArticleRegarding web api url
suppose my web api action names given me like function name and i do not know what name or convention i should follow to give action name. then how do i know what should be right url to invoke any...
View ArticleASP.Net Web api url is not working
I am new in web api. i am sure i am doing something wrong for which my action is not getting called.this is my actionpublic IEnumerable<Customer> GetCustomersByCountry(string country) { return...
View ArticlePassing POST parameters into Web API using Postman
Hi,I have created a Web API and defined the API Controller://Post api/<controller> public IEnumerable<siteLogin> Post([FromBody]string siteId, [FromBody]string sitePassword) {...
View ArticleHow multiple Get function could be there in a web api controller
just see the scenario public class CustomerController : ApiController { public IEnumerable<Customer> GetCustomersByID(int id) { } public IEnumerable<Customer> GetCustomersByName(string...
View ArticleHow to generate controller class in web api from EF
i heard that we can auto generate web api controller class from EF ? if possible then please discuss the step that i need to follow to achieve the task.basically suppose i do not want to write web api...
View ArticleIn web api what kind of operation should be Get type and what kind of...
i am very new in web api. i have often seen people compose a action with get type verb when action take no argument or when action takenormal dotnet data type like int, string, date time etc and when...
View ArticleWebAPI: How to do attribute routing for Post, Put and Delete verbs
i am new in web api. some how i manage to do attribute routing for get type request but do not know how to do it forPost, Put and Delete verbsplease see my sample code and come with modified code where...
View ArticleHow to test my web api post action with fiddler
i know how to test web api get action with fiddler but for post method i guess i need to send json. suppose there are few post action in my web api which insert many customer or update / delete a...
View ArticleWeb API without LINQ to return multiple SQL records
Hi Reader, I'm new to Web APi so reviewed a few sites showing how to use the technology. This site provides for a simple introduction...
View ArticleASP.Net Web API Xml searlization issue
We are facing multiple issues with xml searilization of asp.net web api. Currently we are using xmlsearlizer instead of DataContractSearilizer (which is a default serialization method for XML...
View ArticleIs there any difference between web api routing and asp.net mvc routing
please tell me difference between web api routing and asp.net mvc routing. try to show with example.thanks
View ArticleWebApi: what is difference between PUT and POST
i knew that POST we use when we need to insert new data and PUT is used for update existing data. i have visited this posthttp://stackoverflow.com/a/630475/6188148@Brian R. Bondy saidBoth PUT and POST...
View Article