The asp.net-mvc-web-api tag has no wiki summary.
1
vote
0answers
74 views
Patterns for Implementing Resource Expansion in ASP.NET Web API [closed]
I'd like to implement RESTful services that support Resource Expansion, so that services are self contained but if clients want to limit the number of service calls that they make, they can do so via ...
0
votes
1answer
59 views
Best practices for caching search queries
I am trying to improve performance of my ASP.net Web Api by adding a data cache but I am not sure how exactly to go about it as it seems to be more complex than most caching scenarios. An example is I ...
0
votes
2answers
310 views
Web API architecture design
I'm learning and diving into Web API. I've used web services before but not specifically with web API. Below is how I am designing it so far and I was curious on the feedback.
I have a ...
3
votes
2answers
91 views
How to support different API Versions
I am writing a Rest API and am wondering how best to handle supporting the different versions. By this I don't mean how to define a URI as V2 or V3, but rather how to structure the code given that ...
0
votes
0answers
57 views
Using web api or libraries
We currently have 1 domain and 4 subdomains using 5 different applications. We are programming in asp.net and we have 6 different solution project. 5 applications and 1 solution for shared back-end. ...
3
votes
1answer
173 views
What is the clean way to pass my LoginContext down through the layers to the data access layer?
I have inherited an API implemented using ASP.NET WebApi 2. The actions on the controllers are all like this:
public object Get(long id) {
LoginContext loginDetails = GetLoginDetails();
if ...
2
votes
2answers
291 views
What am I missing in my (mis)understanding of IoC/DI/Castle Windsor?
Okay, so here's how I understand IoC and DI in Web API to work when using Castle Windsor.
Note, though, that my confidence that I understand it as I should, though, falls somewhere between my ...
1
vote
1answer
162 views
Invoking a web service in a Web API Project…in which layer to invoke?
I am using Microsoft ASP.NET Web API 2 and one of my end points has to internally invoke a legacy non-Microsoft web service (not asmx or svc) .
Which layer should I invoke this in?
I currently have ...
1
vote
1answer
168 views
What kind of user authentication do I need in for a restful web api
I am doing a restful web api with asp.net Web API 2
I do not want to use any form of cookies or basic authentication (send user/pass in cleartext thus SSL needed)
I do not use/need claims stuff.
I ...
0
votes
1answer
74 views
How to configure these REST API Resources [closed]
I'm still in the design phase of my REST API, and I'm a bit stuck on how to configure the resources. The API will be consumed by mobile devices (Android, iOS, and Windows). Communication through ...
2
votes
1answer
205 views
Restful WebAPI VS Regular Controllers
I'm doing some R&D on what seems like a very confusing topic, I've also read quite a few of the other SO questions, but I feel my question might be unique enough to warrant me asking. We've never ...
1
vote
1answer
100 views
Is it feasible to change model relationship mappings and properties in Entity Framework CodeFirst at runtime?
Here's the situation. I have an enterprise application that uses EF Codefirst to map POCOs to an existing database. This has been working fine so far. In fact I would say that it's been working really ...
4
votes
1answer
2k views
Template for Visual Studio for starting AngularJS / ASP.NET Web API dev. Do I need ASP.NETMVC anymore? [closed]
Anyone know of a template.. or information on a proper structure to create a Angular/Web API site? I have been trying to find a good starting point. Should I use the MVC/Web API as a starting point ? ...
0
votes
1answer
261 views
bad practice to have actions in web api controllers
I was creating a new action for a WebApi controller and tried to create a url using the following:
@Url.RouteUrl("DefaultApi", new { httproute = "", controller = "ClientApi"})
and noticed that the ...
2
votes
1answer
112 views
when is it necessary or when should a controller be async
When is it absolutely necessary for a controller to be async? Should all controllers be async or is it bad practice to make all of them async unless it is necessary.
Just looking for some general ...
1
vote
1answer
367 views
necessary to migrate to Web API from MVC controller
Since the released of Web API, I've been wondering whether it's necessary or helpful to migrate/change MVC controllers to use Web API calls. Since it's hard to describe code I'll show an example of ...
8
votes
1answer
1k views
Is there an advantage to using WCF or WebAPI for mobile?
I'm looking at doing my first mobile development using Mono Touch and Mono for Android. I'd like them to communicate with an ASP.NET MVC 4 site I'm designing. I've worked with WCF and WebAPI in the ...
1
vote
1answer
625 views
project layout using webapi
I have the following project structure I would like to implement. I would like to know if there are any pitfalls to structuring my code this way. It is going to be using Microsoft's WebAPI, an MVC 4 ...