Skip to main content

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

0 votes
2 answers
797 views

I'm trying to develop an ASP.NET MVC-application with an additional Web API. To reduce code-duplication, I'd like to share as much code as possible, but with the possibility to differentiate between ...
4 votes
1 answer
1k views

So I suppose this question isn't as much as a 'How to' but a 'which way' kind of question. So I have a .net core api backend that makes calls to a dB I also have a xamarin forms project that ...
0 votes
1 answer
134 views

We have a .Net WebApi 2 we've been working on for quite some time. As we refactor code, we started thinking of what might be a better practice: a) "to get an app by userid", or b) "to ...
-1 votes
1 answer
1k views

I have a web api with controller methods that use rest http(post/get calls). Clients consume this API with normal httpclient calls and I pass an http response back. My use case is I have a legacy ...
-2 votes
1 answer
489 views

I have an ASP.net web API. I would like to call another API that has an authentication token inside my API. The code flow is as follows: My API is called → Get authentication token from 3rd party API →...
8 votes
2 answers
2k views

I am traditionally a desktop app developer, but circumstance has thrust me into the role of doing web client and corresponding REST api logic for a project I am involved in. Unfortunately, I'm a one-...
1 vote
0 answers
479 views

I currently have multiple clients who need to be informed when a customer creates a new order. Each customer is registered to an individual client and customers create orders on my website (each order ...
1 vote
4 answers
3k views

So this is an example endpoint to fetch one user by its username [HttpGet("{username}")] public async Task<ActionResult<object>> GetUser([FromRoute] string username) { // ... ...
2 votes
2 answers
4k views

We have a single solution Visual Studio web application with multiple projects. One of the projects (Services project) has APIs for our App clients (Android/iOS). There's separate project for MVC ...
-3 votes
1 answer
382 views

I know that in some contexts, best practice would be DDD, CQRS and EventSourcing, but in my case this would be too complicated of two reasons: My team is beginners, and we want them to be productive ...
1 vote
2 answers
1k views

I am developing a SAAS application where : A single web application is hosted in IIS which will serve to multiple companies and each company will have its own database. The web application and ...
-3 votes
1 answer
194 views

I know that a RESTful would have unified API and it treats everything as a resource (a noun, example a book, a product,...) and it can be applied with CRUD operations using HTTP Verbs (GET, PUT, POST, ...
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 ...
1 vote
2 answers
2k views

Im a bit confused about what is best practice when working with Entity Framework and ASP.NET Web API. I am working on a project that contains a iOS/Android app and an API the app will use to ...
2 votes
4 answers
7k views

Let's say I have the following model: public class Product { public string Id { get; set; } public string Name { get; set; } public string Category { get; set; } public ...

15 30 50 per page
1
2 3 4 5 6