Skip to main content

Questions tagged [asp.net-mvc-web-api]

Filter by
Sorted by
Tagged with
3 votes
1 answer
2k views

I have an ASP.NET Web API 2 web service. This is the interface customers will use to submit data. I have a Windows Service running on an internal server. I will be sending the customer's POST data to ...
CodeWzrd's user avatar
7 votes
1 answer
4k views

I have an application that is beiong split out into a number of services. From a previous question on here, I think that initially JSON/REST is the way to go for communication. Some of my micro ...
Matt's user avatar
  • 253
3 votes
3 answers
4k views

I have the task to migrate a large silverlight business application in a new living technology. I had choosed asp.net MVC and web api. As we know, silverlight uses MVVM design pattern whereas asp.net ...
Floji's user avatar
  • 141
0 votes
1 answer
728 views

My company has a series of WinForms applications that pretty crudely provides authentication by checking usernames and passwords directly against the database (with a little hashing). I have a fair ...
gsj's user avatar
  • 1
1 vote
1 answer
1k views

So i am inheriting a team and a large project that should have been built with a restful back end. For the time it is only reporting and we all agree to build out a web API (separate project) with ...
user1552172's user avatar
0 votes
1 answer
184 views

I’m relatively new to web development, and I’m amazed at the variety of new concepts in the field. I could probably use some help to synthetize. I have to deal with is a backend written in Delphi, ...
Yugo Amaryl's user avatar
2 votes
2 answers
637 views

I've just started the project and I have this sort of parts in my solution MyApp.Web MVC Web Application MyApp.Data Class Library MyApp.Domain Class Library MyApp.Service Class Library MyApp.Utility ...
Reza Safari's user avatar
6 votes
1 answer
3k views

Background I have a Web API 2 project, without any extension of ASP.NET MVC or ASP.NET projects. The API will only be used to communicate between the server and Windows 8, Windows Phone 8.1 and iOS ...
MikaelKP's user avatar
0 votes
1 answer
124 views

We are planning to develop a cloud based database driven web application which we would like world to use. Till date at the database side we have used fully normalized way to store the data and use ...
jaykhatri's user avatar
3 votes
1 answer
1k views

Consider a Web API with an endpoint api\LargeItem A LargeItem is a pretty big object with lots of properties and long strings. A user can GET any one like so api\LargeItem\1 which returns the ...
Matthew's user avatar
  • 181
2 votes
2 answers
6k views

We are developing a big system with SQL Server database, ASP.NET Web API 2.2 services and another external services. We need to load more data on a table while we process the current data on it. To ...
VansFannel's user avatar
1 vote
1 answer
223 views

We currently have a web app (.net MVC 5), user's login using their username and password and then we store an encrypted value in a cookie to authenticate them on future requests. We are now in the ...
Gaz's user avatar
  • 159
0 votes
1 answer
214 views

I have been asked to write the signatures for and API end points GET/POST/PUT methods. I'm having a hard time wrapping my head around what the point of this is. My co-worker asked if I could do this ...
Stavros_S's user avatar
  • 103
0 votes
1 answer
346 views

I am developing services using Asp.Net Web Api. I am debating on design of our controllers. We have this common scenario where user will be presented with bunch of search field, once he enters the ...
Sri Harsha Velicheti's user avatar
1 vote
1 answer
550 views

Let me apologize first if this topic is too subjective, or not concrete enough. I want to implement a login api for an internal web service at my company using asp web api 2. I know how to implement ...
Mr. MonoChrome's user avatar
4 votes
3 answers
6k views

This is more of an Architecture question, and I want to know all the possible pros and cons of the approach. In my org, we have an ASP.NET Application say "A", a Web API Project say "W", and ...
Guanxi's user avatar
  • 163
5 votes
1 answer
8k views

I m working on Web API project, and it is using WebApiConfig.cs file to defined routs for Web API. Web API fold RouteConfig.cs file. I have googled and they say RouteConfig.cs is for MVC routing. It ...
user576510's user avatar
1 vote
2 answers
196 views

I would like to create a WebAPI application that can serve some of my web sites. My goal is to abstract some common task such as email sending, address resolving etc by providing an API to all of my ...
Menelaos Vergis's user avatar
0 votes
1 answer
4k views

I am building RESTful API that manages persons and lists. There can be many List and many Person each with its own set of properties. Person can be in zero or more lists, List can contain zero or more ...
Gustas's user avatar
  • 3
2 votes
2 answers
2k views

I have a background on .NET development, recently I was asked to code back-end service for a mobile app. I had experiences on MVC, and now I'm trying to understand more on Restful Web API. My ...
Timeless's user avatar
  • 129
3 votes
1 answer
1k views

Let's pretend I am going to work on an enterprise application. Say I have 11 modules in the application and I would have to develop Dashboards for every role in the organization for whom I are going ...
Husrat Mehmood's user avatar
0 votes
3 answers
370 views

ASP.Net is Active Server Pages using .Net Framework Wikipedia says It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server ...
LCJ's user avatar
  • 987
41 votes
3 answers
45k views

I am working on a project in MVC that has mobile application so one thing is clear that we have to use Web API so it can used in mobile application. After creating API when we started to develop Web ...
Ruchir Shah's user avatar
16 votes
5 answers
16k views

This was more a discussion for what peoples thoughts are these days on how to split a web application. I am used to creating an MVC application with all its views and controllers. I would normally ...
eyeballpaul's user avatar
3 votes
3 answers
3k views

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 ...
David Esteves's user avatar
0 votes
2 answers
3k views

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 ...
iCobot's user avatar
  • 39
17 votes
3 answers
10k views

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 it'...
Andy Davies's user avatar
0 votes
0 answers
314 views

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. ...
John's user avatar
  • 783
5 votes
1 answer
3k views

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 (...
David Keaveny's user avatar
6 votes
2 answers
13k views

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 ...
B. Clay Shannon-B. Crow Raven's user avatar
1 vote
1 answer
2k views

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 :...
Sartorial's user avatar
1 vote
1 answer
830 views

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 ...
Pascal's user avatar
  • 267
0 votes
1 answer
386 views

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 HTTPS....
supercell's user avatar
  • 1,517
2 votes
1 answer
1k views

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 ...
Rohan Büchner's user avatar
1 vote
1 answer
660 views

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 ...
yeomandev's user avatar
  • 111
0 votes
1 answer
2k views

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 ...
SOfanatic's user avatar
  • 241
8 votes
1 answer
8k views

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 ...
SOfanatic's user avatar
  • 241
2 votes
1 answer
2k views

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 ...
SOfanatic's user avatar
  • 241
8 votes
1 answer
3k views

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 ...
allen.mn's user avatar
  • 305
1 vote
1 answer
3k views

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 ...
Charles Lambert's user avatar