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

2
answers

My App does not load list of items

I have a App Xamarin.Forms that consumes two rest services. The first service, it consumes normally. But the second, I need to pass a parameter, it is not being consumed. I've tried it in many ways and it does not work. I know my c...
asked by 10.09.2017 / 23:27
2
answers

Filtering for empty children

I have two entities ( TipoDeRequerimento and TipoRequerimentoSituaçãoAcademica ) in my query. Today I can make a filter to bring the Types of requirements that have a certain academic situation pre-registered. Now I need this filt...
asked by 04.10.2017 / 02:23
2
answers

Losing the bar ("/")

Follow the code below: var token = "bHhETtde1UhKpwUVmTsNTpXZKyfZGK8/"; var token_string = Uri.EscapeDataString(token); //"bHhETtde1UhKpwUVmTsNTpXZKyfZGK8%2F" HttpResponseMessage response = await client.GetAsync($"{URL}/api/getall/{token_string...
asked by 19.01.2018 / 02:23
2
answers

How to access Web API published externally in IIS [closed]

I developed an ASP.NET Web Application (API) in Visual Studio 2015 and published it in IIS 6.1 to access locally. Now I need to make my machine available as a server for external access. How to do this?     
asked by 15.04.2016 / 13:48
1
answer

Injection dependency with Ninject for more than one web project

Hello, in an application I have an MVC web project and a Web API project, in the MVC project I already have the Ninject configured with the dependency injections and I would like to take advantage of it in this Web API project, I know that maybe...
asked by 03.11.2015 / 12:41
2
answers

How to use folder to store images in a Api Web project published in Windows Azure?

I have a folder created at the root of a Web Api project named Images . At localhost I write them as follows: File.WriteAllBytes(HttpContext.Current.Server.MapPath("~/Images/") + image.Name, image.Image); To display the...
asked by 03.07.2014 / 01:38
2
answers

Transforms string into decimal within an object

I made a ViewModel, where in the database the CPF field is decimal (11,0) and in the VM I put it as String. In my API the CPF is decimal. Well, when I fill in the field and send the form to the API, the value of the CPF arrives with 0.0. This is...
asked by 13.08.2018 / 14:11
1
answer

Get method with where customizable

I made WebAPI ( ASPNET with EF6 ) with support for Get() , Post() and Delete() verbs. At some point, I need to access certain values that are not returned by default by verbs, for example: The Request C...
asked by 12.03.2018 / 20:25
1
answer

Save JSON file information to database

I think about the possibility of a Web system saving information from a register in a JSON file on the client device, and that would later be sent to the DB. This will happen when the client is in an environment where it is not possible to acces...
asked by 24.06.2018 / 23:51
1
answer

Return Json - AngularJs

I'm creating an Asp.Net Web.API application and the service return is in Json. So far so good, it turns out that the main object (Companies) is returning an internal object - citiesFiliais (Branches by City) with a Bracket that is not interpr...
asked by 25.10.2016 / 19:57