Questions tagged as 'rest'

1
answer

POST Error with Rest API - Windows Forms

I'm trying to make a POST this endpoint link (it's a simple API I've done with Django Rest) I'm using Windows Forms C # Follow the call: using (var client = new HttpClient()) { client.BaseAddress...
asked by 03.08.2016 / 01:02
1
answer

Select manual in repository using Spring?

Hello, I would like to know if there is a way to do a select within Repository , I am using Spring and REST , I need to return all entities that have another entity, I would get them by id, and I need to feed a call ajax with i...
asked by 17.08.2016 / 15:48
0
answers

Problems with Pouchdb access

Using PouchDB with a REST API to do a replicate.to? Following is the simple example of PouchDB: bancolocal = new PouchDB('http://192.168.1.100:5984/bancoexterno'); The problem is when I run the application, I noticed by the crhome inspect t...
asked by 10.07.2016 / 19:10
2
answers

Create bidirectional relationship without using DTO?

Hello, I'm in a project and I need to do bidirectional relationship between two entities, the relationship is @OneToMany @ManyToOne , so far so good. But I wonder if there is any way to do it without using DTO? @Entity public class An...
asked by 01.07.2016 / 16:53
1
answer

What are the options for Rest?

Currently the Rest architecture has become a standard for building APIs and Webservices. But what about Rest? What else goes into API building?     
asked by 20.06.2016 / 13:41
0
answers

entering data in web api

I have a SPA application and it consumes a REST API done in ASP.NET WebAPI. When trying to perform an insert in the API, the following error is returned:    Response for preflight has invalid HTTP status code 405 In web.config...
asked by 21.06.2016 / 04:59
1
answer

Crud with webservices REST simple java. Problems with class customer jersey

I have this class but it is giving many errors I do not know what I do today that I try to solve. What do I do? package manager.client; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.Invo...
asked by 15.07.2016 / 20:07
1
answer

I can not find the path of my GET method in WebService Rest

@Path("webservice") public class WebService { private CriancaDAO criancaDAO = new CriancaDAO(); @GET @Path("getCriancaTodasCriancas/{idCrianca}") @Produces(MediaType.APPLICATION_JSON) public List<Crianca> getCriancaTod...
asked by 09.06.2016 / 14:53
0
answers

Blank page request API in PHP

I'm trying to make a request for the url: link and the response in case of valid token should be true . I have tried in many ways using Curl and GuzzleHttp , all return me a blank page . I tested token...
asked by 01.05.2016 / 04:28
1
answer

Calling a WebService Rest with a Post Order

I wanted to do on Android a call to a Rest WCF WebService via POST requests. In C # I can, by sending the post, url and body param . But in Android , whenever I send a parameter, the webservice method (although I can connect), says t...
asked by 14.04.2016 / 10:49