Questions tagged as 'restful'

3
answers

Many to Many JSON POST - Rails 5 - Only API

Hello, I'm developing an Engine in Rails 5 where it will be just a blog API. It will be a simple system. Post has several Passions and Passions has several Posts. I made the N < - > The problem is that when sending the JSON of the post...
asked by 29.03.2017 / 13:28
3
answers

How to force read all the results in REST on a page?

foreach ($result as $indices) { // Aqui ele retorna 50 registros por conuslta echo $indices['Empreendimento']; // Provavelmente preciso de um loop da paginação aqui dentro // para falar para o foreach que enquanto houver paginaç...
asked by 28.11.2015 / 15:10
1
answer

How can I not serialize some attributes in RESTful (C # + WCF + JSON) calls?

In the example below, how do I not serialize an attribute. I think I'm looking for the equivalent of the java syntax: For classes: @JsonIgnoreProperties (ignoreUnknown = true); For attributes: @JsonIgnore for attribute. public class Some...
asked by 16.09.2014 / 17:01
3
answers

REST Webservice does not return XML in IIS 8.0

The webservice in visual studio 2013 works beautifully. I added it to windows 8.1's IIS, and when it comes time to send the data via REST, it gives me this error:    The server encountered an error while processing the request. See the servic...
asked by 06.03.2014 / 20:19
1
answer

Webservice SOAP only uses XML?

Working some time with webservice for mobile application I noticed that SOAP uses XML and REST uses JSON . Using SOAP means I have to use only XML ?     
asked by 26.06.2015 / 04:53
2
answers

Good practices for Rest services [closed]

When I made my first API rest, I defined my JSON structure and it always returned the same structure even the pair having given it or not. I talked to a new co-worker and he introduced me to another perspective. If the pair has not given it, it...
asked by 16.02.2018 / 12:38
2
answers

How to use REST to validate the receipt of XML via POST

I have an application in Delphi that sends an XML with a code via Post . I have to develop an application in Symfony that needs to validate the receipt of this XML via post. Listening to say it would be via Rest but I've never used Rest. I w...
asked by 11.07.2016 / 14:09
2
answers

CAPTCHA in stateless API

How to use CAPTCHA in a stateless application? If it is not possible what is the alternative for this?     
asked by 14.01.2015 / 20:49
2
answers

Restful method DELETE

Inside the Rest architecture we have the verbs POST , GET PUT and DELETE . Among the various examples and tutorials I studied. The use of the DELETE verb is always exemplified with DELETE /addresses/1 , where I...
asked by 19.04.2018 / 15:58
1
answer

PHP authentication OAuth2

I'm doing a Restful web service, is OAuth the best way to authenticate and work with token? Is it possible to use OAuth2 to authenticate via username and password?     
asked by 06.04.2015 / 03:03