ASP.NET Web API is a framework for building HTTP services for clients like browsers and mobile devices. It is based on the Microsoft .NET Framework and ideal choice for building RESTful services.
0
votes
0answers
12 views
Advice for authenticating an ASP.net MVC 4 website and web API
I am developing an application which requires the user to register/login.
Once they are logged in the application has access to a JSON RESTful API which will possibly be on a different domain.
I've ...
0
votes
0answers
33 views
Can I route a mix of optional and conditionally mandatory parameters in ASP.NET Web Api/MVC
I'm guessing that the answer is to make multiple routes, but our route list is beginning to get long, so I'm looking to see if this can be expressed more elegantly and simply. :)
In my current ...
0
votes
1answer
20 views
WEB API. Multiple actions were found that match the request
Need help.
I have 2 controllers:
// POST (Single SMS)
[ActionName("AddSMS")]
public HttpResponseMessage Post(MySMS singleSMS)
{
try
{
SMS_Repository.Add(singleSMS);
return ...
0
votes
2answers
37 views
Asp.Net Web API Routing not hitting custom action
Here is my code:
public class SecurityController : ApiController
{
//GET api/Security/Current
public HttpResponseMessage GetCurrent(){
}
//POST api/Security/Login
public ...
0
votes
0answers
8 views
How to Get Google Analytics Data with ASP.NET?
I want to get total page view count with Asp.net.I cant find anything.I saw some application with api but I cant.Can you help me?
2
votes
3answers
49 views
Where is the database call in the Repository Pattern?
I've looked over several repository pattern examples and I can't seem to determine where the database access takes place. All of the examples I'm seeing seem to anticipate the use of the Entity ...
0
votes
1answer
17 views
How do I POST a httpclient to a WEB API? (simple as possible way for my highscore table)
My windows phone client sends a piece of JSON that represents the Name and Score... Should I be using the Class from the Web API instead ? What is the code to send the object to the server rather than ...
3
votes
1answer
51 views
Reasons not to use POST when searching via API endpoint?
I think the standard approach to RESTful searching is this:
GET /users?parameter1=value1¶meter2=value2¶meter3=value3¶meter4=value4
But I want to do something like this:
...
0
votes
1answer
31 views
Webapi ajax formdata upload with extra parameters
I'm using jQuery ajax to upload file but want to add some parameters on webapi method, here is:
var data = new FormData();
data.append("file", $("#file")[0].files[0]);
data.append("myParameter", ...
0
votes
1answer
26 views
can't get to web api controller action with jquery ajax post
I'm trying to create my first REST application with the web api in mvc4. I have a controller set up with the HttpPost verb but for some reason when I click the link to post the xml string to the ...
1
vote
0answers
47 views
C# MVC overwriting required annotation error message doesn't work
I have a user class with annotations for required fields.
public class User
{
[DataMember(Name = "firstName")]
[Required(ErrorMessage="FIST_NAME_REQUIRED")]
public string FirstName { get; ...
0
votes
1answer
19 views
Seamless decompressing the request content in web api
I'm working on some compression/decompression for a web-api application.
I've already implemented most of it thanks to multiple articles on the web and questions posted here.
However, I'm still ...
0
votes
0answers
23 views
ASP.NET Web API Deployment on IIS 7.5
I have a 3rd party client dll that requires the Application Pool to allow for 32bit applications and the pipeline mode to be set to classic mode. For authentication, the ASP.NET Impersonation needs to ...
0
votes
1answer
41 views
Web-API JSON Parent Object Name
created an web api that outputs json, trying to use it with backbone.js pagination plugin to ouput the results to the backbone.js infinite-paging plugin
this is my outputed json
...
0
votes
1answer
33 views
How to receive JSON array?
Help me, please with receiving some JSON array
If i sent request(by Fiddler) with Request Body like this:
[{"name":"Homerius", "tonumber":"155555", "fromnumber":"166666", "text":"&&??!"}, ...