Skip to main content

Questions tagged [web-api]

Specific APIs that communicate over web protocols, such as ASP.net Web API, as well as APIs that are exposed to web pages for network communication or apps for device communication

-1 votes
2 answers
170 views

I have an asp net web api project using clean arch. These are the layers: API (controllers) Application (UseCases) Domain Infrastructure (database access I need perform an http call and according to ...
Tiago Crizanto's user avatar
1 vote
1 answer
388 views

Where I work, they have never implemented web APIs. At my previous job, which I left 11 years ago, I would write several web APIs to be used for applications, reports, etc. So when I came to this job ...
Rod's user avatar
  • 173
23 votes
4 answers
9k views

I don't understand why I keep seeing async/await recommended (or sometimes, even enforced) for ASP.NET Core web applications and APIs. As far as I can tell, every request is already being run on a ...
Medinoc's user avatar
  • 385
2 votes
3 answers
3k views

I am building a web application. This application is meant to be a home for player rankings and tournament results for a competitive community. I have planned to do this in three layers: a database to ...
John Johnson's user avatar
96 votes
15 answers
19k views

There's a debate going on in our team at the moment as to whether modifying code design to allow unit testing is a code smell, or to what extent it can be done without being a code smell. This has ...
Lee's user avatar
  • 1,131
2 votes
3 answers
503 views

The company I'm working at has strict policies that insist that all business logic is contained in Domain Models as part of DDD. I can see how this approach could work well for something like a ...
Mog0's user avatar
  • 147
4 votes
4 answers
1k views

I have a project with .net core web api backend and angular as front end. I have single repository for both the projects with front end and backend in their own separate folders. I have written ...
Pawan Nogariya's user avatar
0 votes
1 answer
737 views

Here is an Example API for managing companies, employees, and their children. My entity relationships are as follows: company -1:n-> employees -1:n-> children I’ve structured the API routes ...
Doku's user avatar
  • 111
1 vote
1 answer
296 views

In an ASP.NET MVC application with views that make AJAX calls for widgets like dropdowns and data grids, is it better to use Web API controllers or regular MVC action methods that return JSON? The ...
EMN's user avatar
  • 805
2 votes
5 answers
409 views

A couple days ago I asked about the Purpose of async/await in web servers, and got in-depth answers explaining how in fully asynchronous code, it frees up the CPU completely while also releasing the ...
Medinoc's user avatar
  • 385
75 votes
4 answers
31k views

I was wondering about this. Suppose I have a user resource with id and name fields. If I want to update a field I could just do a PATCH request to the resource like this PATCH /users/42 {"name&...
mattecapu's user avatar
  • 1,012
35 votes
5 answers
35k views

Having two classes: public class Parent { public int Id { get; set; } public int ChildId { get; set; } } public class Child { ... } When assigning ChildId to Parent should I check first if ...
Konrad's user avatar
  • 1,569
0 votes
1 answer
148 views

In OpenAPI, is there a convention for denoting that your API is not stable yet? In semantic versioning, the v0.x.x version number is usually used to indicate that the project is not stable yet. ...
Kyle Richards's user avatar
1 vote
1 answer
273 views

I want to develop a miminal app for iOS and Android. Basically, I want to have a widget (or similar micro-app) that displays how many items I have in a list. If I open the widget, it just opens a ...
Chaos Crafter's user avatar
60 votes
3 answers
52k views

I have used SignalR to achieve real-time messaging functionality in several of my projects. It seems to work reliably and is very easy to learn to use. The temptation, at least for me, is to abandon ...
tacos_tacos_tacos's user avatar

15 30 50 per page
1
2 3 4 5
27