Questions tagged as 'asp.net-web-api'

1
answer

How to return a pdf in Web Api C # without doing dowload and open in Browser?

Good afternoon, I'm using httpResponseMessage , every request it downloads. Did you want it to appear in your browser when prompted? HttpResponseMessage responseMsg = new HttpResponseMessage(HttpStatusCode.OK); responseMsg.Content = n...
asked by 09.08.2018 / 21:12
0
answers

Problems with Inner Join in Dapper

I have the following problem when I inner join in 3 in> Dapper does not bring me all the columns of the 3 tables, but only the parent table of my inner join (ie the first table in the query). My classes public class ItemQuesti...
asked by 11.08.2018 / 01:16
0
answers

API Web Infrastructure

I'm building an API infrastructure layout and would like to see your views, as well as scalability ideas and applied concepts. I will not go into many details of internal infrastructure, behaviors, and features. Currently the layout for th...
asked by 10.08.2018 / 22:25
1
answer

Error formatting Json

I need to generate and expose a Json via web api and the question is this: 1o. - Can not expose the attribute "services":null , according to the JSon generated by me described below? Home 2nd. - How do I generate at the start of Json:...
asked by 17.08.2018 / 01:57
1
answer

ASP.NET Core - Search for GET requests [closed]

I'm using ASP.NET Core 2.1 Web API and I need to perform searches for a certain type of field, ie on my front I can choose the field I want to do the search and my back end needs to get that value. [HttpGet] public ActionResult<ResponseResu...
asked by 30.07.2018 / 13:43
0
answers

Send a blob to a webservice

Hello, it may seem Jr. the personal question but I have already tried searching the internet and nothing. I have the following scenario: A .NET API provided by a company to which I have to submit a file, and my BackEnd to NodeJS. This B...
asked by 02.08.2018 / 22:22
0
answers

Authentication in architecture Microservices with C #

How to do a user authentication using the standard API Gateway ? I've read a lot of articles but I do not find a code example using Web API 2 and the ones I saw using the net core in> only does the first authentication of the user, that i...
asked by 18.07.2018 / 13:42
0
answers

Concurrent access block

I need to control the simultaneous access of the same user to the system. It turns out that the application is multiplatform (web, app). I think it's something like Netflix's control.     
asked by 26.06.2018 / 19:33
1
answer

Pick up json from the postman and play on an object

I have POST and I use Postman to test. Amount to url and body in Postman . Now when I test my object on my Controller it comes NULL , and of course it's because I did not do it correctly. What do I have to do? Controller [Route("api/[c...
asked by 20.06.2018 / 20:39
0
answers

How to use webClient for Basic Authentication

I need to access a webservice from a client to authenticate and get an access token, when I use credentials via java or google arc everything works perfectly and I get the access token but in C # I'm not getting it, it returns error 401 unauthor...
asked by 18.06.2018 / 21:58