Questions tagged as 'response'

2
answers

Best practice for client to choose response format (JSON / XML)

I would like to know the best coding practice that allows the client to define the response format for the request he made, which can also include filters, conditions, ordering, etc. I made a small template for the answer, I do not know if it...
asked by 16.01.2017 / 14:59
1
answer

Go through a site's response tags C #

I am doing a query in google by C # and I need to get the query return the Query Title and the Query Link returned. I got my return as follows: public class GoogleSearch { private string _TituloPesquisa; private string _LinkPesquisa...
asked by 14.07.2017 / 21:09
2
answers

Error when picking up JSON elements

Talk to people, blz? I'm having a problem when receiving the JSON response from Ajax, I can not populate all the states in the select. Although it is inside a for it only takes the last element, ie it runs through all states but only stores the...
asked by 27.10.2017 / 21:58
1
answer

Extract '_id' from object load_response

After posting, I get a load_response object, in Dict format, with the following structure: {'_content': b'{"params":{},"_id":"5a566f175ff52e02704de1aa","variables":"/dataset/5a566f175ff52e02704de1aa/variables","scenarios":"/dataset/5a566f175f...
asked by 11.01.2018 / 11:19
1
answer

How to convert JsonArray to ArrayList in android

Hello, how are you? I would like your help to be able to convert a JsonArray to ArrayList < > on android. I make a request that returns the following Json: {"normal":{"test_graph":{"VALORES (R$)":"valor"},"randons":[],"id":"","...
asked by 21.10.2018 / 03:45
0
answers

Failed to load PDF document after calling service

I have a Service that generates a PDF and returns the bytes of it: The Service when run on the web returns this: <?xml version="1.0" encoding="UTF-8"?> <base64Binary xmlns="http://...com/">JVBERi0xLjMKJcfsj6IKNSAwIG9iago8PC9MZ...
asked by 04.07.2018 / 13:29
0
answers

How to recover the data in the api query in NODEJS

Good morning people. I'm consuming an external api and I'm getting the data as follows: { "place_id": "151508663", "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": "348425570"...
asked by 14.05.2018 / 16:45
1
answer

What should I return in a REST API when the results are either true or false?

When I search an information in the database and this information is not returned (since it does not exist), what should I do? Filling a JSON object for GET return? And if I return false? Can the response be the status code 201 or 404? What w...
asked by 21.03.2018 / 20:14
1
answer

Vue js and Axios does not identify API JSON response

// Get Pipelines const getPipelines = new Vue({ el: '#top-pipelines', data: { pipelines: [] }, mounted() { axios({ method: 'post', url: 'http:..xpto.../getpipelines',...
asked by 16.01.2018 / 14:37
1
answer

Get object that was created on the server via Angular

Good morning, people, I'm new to Angular 4 (using TypesCript) and I'm having a basic question, but I did not find an answer here. I have a typescript method that calls a method from a WebAPI. This WebAPI method creates an object and return...
asked by 08.11.2017 / 15:00