All Questions
Tagged with asp.net-mvc-web-api web-api
26 questions
-1
votes
1
answer
1k
views
Can I call a WCF endpoint from ASP.Net Web API?
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
411
views
How often should I request a token when communicating with a third-party API?
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
Separation of concerns and other best practices across Controllers, Services, Providers and Stores in ASP.NET when building a REST web api
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
2
answers
2k
views
Should an ASP.NET Web API application use Entity Framework in the API controllers?
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
Web API - How to prevent the POST-ing of entities with custom Id values
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 ...
0
votes
2
answers
1k
views
Why should I use REST API?
I somehow get the point of REST API, like for example you want to get the list of customers to the database server, you have to request a GET method and the server will throw a response with a ...
0
votes
0
answers
936
views
Separating models in a Backend-For-Frontend (BFF) API
At the moment I have a frontend client calling several backend REST APIs. For example a call may be to get information about a certain vehicle. Then the client will call REST API A to get some ...
-4
votes
1
answer
390
views
When designing a web application with Vue.js and ASP.NET Core, is ASP.NET solely for the API?
When creating a web application from scratch with ASP.NET MVC Core (using Visual Studio 2017) and using Vue.js, is the MVC Core part of the application solely for the API? What other function would ...
2
votes
1
answer
3k
views
Calling executables from an ASP.NET WebAPI
I have an Angular application with a table, and I'm considering having the console application take the name of C# programs that the user can run.
I was thinking of passing the name or code of the ...
3
votes
2
answers
4k
views
Stateful authentication in REST API using tokens
I have recently started on a project involving a REST API. The API requires authentication with requirements for administrators to be able to view logged in users and to be able to revoke specific ...
-1
votes
2
answers
67
views
What should be the REST API (URL) for a user to be assigned to multiple territories
In our application we have a user who can be assigned multiple territories.
What is the best way to expose the REST API?
Should it be as :
[POST] www.xyz.com/Territory/User
OR
[POST] www.xyz.com/...
3
votes
2
answers
9k
views
Web API - strong classes or dynamic?
My web api method should return some structured data about my profile. To do it I created the following POCO classes:
public class ProfileInfo
{
public string FirstName { get; set; }
public ...
2
votes
1
answer
310
views
What features are missing from WCF Rest Implementation
In this question about using WCF and/or WebAPI, there is this quote:
I was asking myself the same question until I found this WCF and
ASP.NET Web API comparison page on MSDN (with my own emphasis
...
1
vote
1
answer
1k
views
Dotnet (.NET) core MVC WEB API SPA Project and Solution Structure
I am building a new simple web application using dotnet core (.NET Core) and Angular SPA.
Does it make sense to split API and Web App into different projects?
This would complicate things (...
2
votes
2
answers
942
views
Best technique for pushing many records and files to a system: WEB API or FTP
I have a website where users can upload manuals (PDF documents) for their products. Basically, they first add the product to the system and then add 1 or more manuals to that product. A manual can ...