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

2
answers

GET method error when consuming WebApi

I created a project in AspNet WebApi, I added an ADO (DataBase-first) to connect with the Mysql database and created the controller using the 'Controller with read / write actions and views, using Entity Framework' / strong>, when I test in a t...
asked by 03.06.2017 / 07:45
1
answer

Retrieving a WindowsServices through an ASP.NET application

I have Windows Service that at certain time it does a scan on the machine and performs a backup, to a folder on a server in the network. The Service is running on the machines perfectly and running the backups without errors. Howeve...
asked by 04.10.2016 / 21:50
0
answers

What to do when the generated token expires?

I'm developing a rest API with Framework Asp.Net Web Api 2 , using Owin . I have a android application as the client. In case, my system has users and passwords and authenticates normally. I want to know what to do whe...
asked by 01.02.2017 / 18:30
2
answers

Change in json file format

My file is coming in this format, but I wish it did not appear this #id before sale: { "$id": "1", //como não mostra isso? "venda": [ { "$id": "2", "poule": 73, "idusuario": 4, "vendedor": "ITAMAR SOUZA",...
asked by 22.01.2016 / 19:38
0
answers

Windows Phone does not execute request in API

Well, I have the following modules in my project: Concerts.Console Concerts.Mobile Concerts.Core Concerts.Models Concerts.WebClient Concerts.Tests Basically it is as follows: The Concerts.Core module uses the Concerts.WebClie...
asked by 08.10.2015 / 18:54
1
answer

Customizing Json consumption - Web API

I have the following information in Json: [ { "$id": "1", "Cditemcontacli": 1.0, "Cdcontacli": 1.0, "Descricao": "Produto 1" }, { "$id": "2", "Cditemcontacli": 2.0, "Cdcontacli": 2.0, "Descricao": "Produto...
asked by 22.09.2015 / 20:27
1
answer

Ensure that HttpConfiguration.EnsureInitialized ()

Good Night! I'm studying ASP.NET (I come from java) and I'm a bit confused by all that. I'm trying to create an endpoint to return the list of clients from my database, however, I can not initialize it at all! When I run the project, it...
asked by 28.10.2015 / 00:58
2
answers

How to get Id on the return of a Post in the Api Web?

I have this code in Web Api : [ResponseType(typeof(Menu))] public async Task<IHttpActionResult> PostMenu(Menu menu) { if (!ModelState.IsValid) { return BadRequest(ModelState); }...
asked by 07.06.2014 / 00:29
1
answer

Variables in a JSON - PHP

Is there any way to vary the value of a JSON? Let's take an example: I have the following JSON { "ISteamClient": 0, "ISteamFriends": 0, "ISteamUser": 0, "IEconItems_440": 0, "IEconItems_730": 0, "ISteamGameCoordinato...
asked by 10.02.2015 / 00:00
1
answer

Service not being called to update on the bank

I made a service and when I call on the URL , passing the proper parameters, does not work: Call URL : http://localhost:9078/api/atualiza/1000012120/teste My service: public class AtualizaController : ApiController { Auto...
asked by 14.09.2017 / 16:23