Questions tagged as 'api'

5
answers

PHP that returns null table fields that are neither empty nor null in MySQL

I have a table "payment_forms" and I made an API to get all these forms of payment, but even the database is correct, it informs that the "name" field is null in return, see: [{"nome":"Dinheiro"},{"nome":"Cheque"},{"nome":null},{"nome":null}]...
asked by 09.02.2017 / 17:32
1
answer

Api of Positions and Functions [closed]

Is there an API that lists jobs and job functions? (In Brazil) Example: Informática -> DBA, Programador, Suporte Técnico. Among other types of jobs. It does not necessarily have to be an API, it can be some kind of file I can import...
asked by 14.08.2017 / 04:38
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

Foreach or is within an Anynimous Type C #

I am putting together a return of an Api in JSON , and the return I am in AnynimousType I believe that is how it is called, in it I name the variables as they will for Json, I needed to make a foreach to return the parcels, of a form o...
asked by 01.12.2018 / 06:29
2
answers

How to fix the Requests encoding in Python?

I'm studying Requests in Python and I'm trying to get the data from the zip code: link p> I can get it, but when it comes to showing them, since I live in São Paulo because of the encoding I get: S\u00e3o Paulo Reading the request...
asked by 17.04.2017 / 02:15
4
answers

POST API Rest JSON

I have a form in HTML that should send data to a server in JSON format. How do I format this input and submit data to an API Rest the data in JSON in the way I described below? As I see it, I need to do a POST, the difficulty is...
asked by 17.10.2017 / 17:34
1
answer

Projects with synchronous and asynchronous APIs

I'm developing a small project and I have two entities for now: Product and Customer The product API is asynchronous (with Task and async) and the client API is synchronous. I wonder if there is any problem in using these two approaches...
asked by 07.08.2018 / 13:46
1
answer

Java - What to do when JSON can come in Double and Long?

I'm using a WeatherTime API. When I get the weather data from a city via JSON I get the temperature as follows: clima.setTemperatura((Long) dataNode.get("temperature")) However, in the API documentation, when I use get ("temperature") it...
asked by 21.06.2018 / 02:27
1
answer

Upload to Drive [closed]

Personal I have the following code, which opens the consent form of google, where the authorization of the user is made and an authentication token is generated: public async Task<ActionResult> IndexAsync(CancellationToken cancellationTo...
asked by 04.04.2017 / 19:12
2
answers

Options for generating API documentation in Laravel

I need a lib to generate API documentation in Laravel 5.4?     
asked by 01.06.2017 / 13:42