All Questions
8 questions
-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 →...
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
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
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
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 ...
6
votes
1
answer
3k
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 ...
5
votes
1
answer
8k
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
1
answer
2k
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 :...