The asp.net-mvc-web-api tag has no usage guidance.
-2
votes
0answers
31 views
Naming structure of an WebAPI solution having multiple projects
I'm trying to create a WebAPI application for CRUD operations of Employee and is going to implement the Unit of Work, Repository Pattern with Entity Framework.
I have the following structure:
...
4
votes
2answers
151 views
If I have ten objects, should there be ten controllers for a Web API?
Is it good design to have a controller for each object of your API? I know this is a short question, but it's really a fundamental question that I do not know. Say I have a school or a CRM. That is ...
6
votes
2answers
891 views
Isn't CQRS overengineering?
I still remember good old days of repositories. But repositories used to grow ugly with time. Then CQRS got mainstream. They were nice, they were a breath of fresh air. But recently I've been asking ...
1
vote
1answer
77 views
What is a good technique for supporting sorting and filtering with a REST WebAPI
I'm in the process of developing an ASP.NET Core WebAPI that uses EntityFramework to access the datastore. One of the things we need to support is sorting and filtering.
I'm assuming that the HTTP ...
0
votes
0answers
64 views
Enterprise Level architecture suggestions for Employee Maintenance application (Add/Update/Create employees)
I'm currently working on designing and developing an architecture for Employee Maintenance application.
High Level Requirements
User of the application can add/update/delete an employee
User of ...
2
votes
1answer
138 views
ASP.NET Web API: enum or strings
I have an ASP.NET Web API application. It uses enums for some fixed sets of states or types. Now I need to extend enum to support more values. But it will break backwards compatibility so I need to ...
3
votes
1answer
89 views
Joining table with table from external database/API
For a prototype project I've created an Angular 2 application with simple CRUD functionality using Auth0 to handle authentication with a back-end containing a Web API (core), Service and Repository ...
1
vote
1answer
50 views
In which order should page- and pageSize-parameters be used?
I'm building an api and a bit into the development I realized that I constantly change the order of the page and pageSize parameters.
Currently I use C# and javascript, so the method declaration ...
2
votes
1answer
113 views
Which is more secure for the DB, Web API or MVC with repository pattern & EF?
I am 1 of 3 developers. The other 2 use Web API and angular to build web apps. I prefer ASP MVC with a repository and EF. The stated argument is that a service is more secure when accessing the ...
0
votes
0answers
46 views
Use MVC Identity from other Application
I want to create a logon system, using WebAPI2. I also have a MVC4 application which I want to upgrade to MVC5 without changing too much straight away. I was wondering if it was possible to point the ...
1
vote
1answer
187 views
Consume ASP.Net REST API service
I am creating ASP.Net REST API application and stuck on the part where I should consume the REST service.
I am not sure how to find the way let me accomplish the following:
1. I don't want it to be ...
0
votes
1answer
80 views
How To Design Tiers For Web and Mobile App
The scenario is to have a Mobile App and Web App too.
So currently I can think of two scenarios
Which one do you guys think is better?
PS : If needed I can also implement DAL Layer in both the ...
3
votes
1answer
294 views
Web API to Windows Service communication via ZeroMQ
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 ...
6
votes
1answer
361 views
One Large API to several microservices vs lots of small APIs each with their own API
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 ...
3
votes
2answers
693 views
Migrating large silverlight business application to MVC
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 ...
0
votes
0answers
1k views
How to implement authentication between asp.net MVC application and Web API?
For an upcoming project, we have to build a secured web application with ASP.NET MVC. This web application will communicate with an ASP.NET Web API for all the CRUD actions.
The user will have an ...
0
votes
1answer
335 views
What's the most straightforward way to integrate my company's custom authentication with ASP.NET SSO?
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 ...
1
vote
1answer
991 views
.NET MVC authentication to AngularJS to .NET web API advice needed
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 ...
0
votes
1answer
126 views
My web app uses ASP, but does-it need it?
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, ...
2
votes
2answers
306 views
Where should i put the WebAPI
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 ...
6
votes
1answer
2k views
Token or ASP.NET Identity based security in ASP.NET Web API 2
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 ...
0
votes
1answer
90 views
How to scratch database that query faster for cloud computing
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 ...
2
votes
1answer
461 views
Is it poor practice to return different data types from alternative Web API endpoints?
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 ...
0
votes
2answers
3k views
A CLR SQL Server Stored Procedure calling an ASP.NET Web API
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 ...
1
vote
1answer
148 views
Securing a Web Api for individual Users
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 ...
0
votes
1answer
141 views
What's the point/Use of writing out just the method signatures for an API in .Net Web Api
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 ...
0
votes
1answer
242 views
Asp.net Web Api Controller design
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 ...
1
vote
1answer
376 views
Implementing internal own authentication
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 ...
3
votes
3answers
3k views
Calling Web API vs adding reference to underlying dlls [closed]
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 ...
3
votes
1answer
4k views
why Web API 2 has RouteConfig.cs file?
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 ...
1
vote
2answers
169 views
WebAPI authorisation for other apps
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 ...
0
votes
1answer
2k views
REST API design for associations/aggregation
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 ...
3
votes
2answers
1k views
Is RESTFUL API as back-end service one of the best (or suitable) choice for Mobile App? [closed]
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 ...
2
votes
1answer
600 views
How to manage security of these self hosted web apis, to ensure that the request coming for accessing data is authenticated?
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 ...
0
votes
3answers
218 views
Why Microsoft’s Web API is named as ASP.Net Web API
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 ...
16
votes
3answers
19k views
Should we call Web API from MVC application in same solution?
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 ...
12
votes
5answers
11k views
Pure Front end JavaScript with Web API versus MVC views with ajax
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 ...
0
votes
3answers
804 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
2k 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 ...
10
votes
3answers
3k 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 it'...
0
votes
0answers
230 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. ...
4
votes
1answer
1k 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 (...
5
votes
2answers
5k 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
822 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
622 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
295 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 HTTPS....
2
votes
1answer
785 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
469 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 ...
0
votes
1answer
1k 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 ...
3
votes
1answer
786 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 ...