Tagged Questions
0
votes
1answer
59 views
Why is WebAPI Throwing a 'No MediaTypeFormatter' Error?
I have a strange issue happening with my WebAPI controller.
In my development environment (Win7, IIS 7.5) the method on the controller is called and the result is returned as expected.
In my ...
0
votes
1answer
39 views
Where the auth cookies needs to be when you have a web api?
I have a Web Api (C# MVC4 with EF5) and want to provide data information for other applications. I'll use a type of anti relay attack sending a uniquekey as response for every request and expecting ...
1
vote
1answer
37 views
How can I structure a REST API endpoints for MS Web Api cleanly?
I have a data model called PIM (Product Info Manager) that requires that I pass a company AppId for every request. So if I want to get all the products I would pass a Company AppId and the resource ...
0
votes
1answer
38 views
ASP.NET Web API Not Serializing bool fields
I have the following model class:
[DataContract(Namespace = "http://api.mycompany.com/v1")]
public class Job{
[DataMember(IsRequired = true), Required]
public long Id { get; set; }
...
-1
votes
1answer
41 views
Is Breeze.js support RESTful philosophy in asp.net web api? [closed]
I've noticed that breeze.js handle CRUD operations as request with POST http method... Has someone wrote own webapi provider to handle CRUD in way that RESTfull provide?
This is link where you can ...
1
vote
0answers
40 views
Versioning an API [migrated]
I'm starting a side project, the first stage will be a building a web application with MVC, in later stages we will be adding clients for mobile platforms. My thought was to create one API that all of ...
0
votes
0answers
68 views
Breeze.js RESTfull support. Clean and powerful asp.net web api with breeze.js [closed]
I've found breezejs as very interesting framework. But I have one misunderstanding.. Why it didn't support http methods depending on delete/update/create/get operations and instead uses post http ...
0
votes
1answer
50 views
Calling webapi method gives 404
I don't understand this.
I have a webapi project setup locally on my own server, that works. I can go to http://mydomain.com/Api/Method and get my expected result no problem, works across 3g and ...
2
votes
1answer
81 views
How to add to/update a class collection navigation property in ASP.NET Web API (or REST in general)
This is a design problem specific to a Web API project I'm working on, but it might be a question that's general to REST principles. It's also possible I'm completely overthinking this.
I have a ...
1
vote
3answers
41 views
RESTful archiving of entities in WebAPI
I've implemented CRUD functionality pretty restfully in my WebAPI project. I'm now trying to implement Archiving of objects (not quite deleting) - if only there were an ARCHIVE HTTP method.
I see ...
1
vote
1answer
49 views
With Swagger.NET, how do I describe return values in detail?
I've got a Web API REST web service that is returning objects. I have installed Swagger.NET as well as Swagger UI. I'd like Swagger UI to list the fields inside of the objects being returned from ...
0
votes
1answer
64 views
composite key resource REST service
I've come across a problem at work where I can't find information on the usual standard or practice for performing CRUD operations in a RESTful web service against a resource whose primary key is a ...
0
votes
2answers
50 views
Security approach for WebAPI
I currently have an ASP.NET MVC 4 website where members have an account and can log in using both Facebook and my own login form. I am then using FormsAuthentication.
I would next like to build an ...
1
vote
0answers
22 views
Contextual serialization from WebApi endpoint based on permissions
I am using the Asp.Net Web Api. I would like to be able to filter out certain fields on the response objects based on the connected clients access rights.
Example:
class Foo
{
...
1
vote
2answers
88 views
How to Route non-CRUD actions in a RESTful ASP.NET Web API?
I am trying to design a RESTful web API for our service using ASP.NET Web API. I'm running into trouble with figuring out how to route non-CRUD actions to the proper controller action. Let's assume ...