Questions tagged as 'restful'

1
answer

How to return request status code Java RestEasy

It is very intuitive to do a return of the API with an object or something, but would like to return an object along with the status code of the request. @Override @GET @Path("/{num}/{cod}") public Foo getFoo(@PathParam("num") long numFoo, @Pa...
asked by 21.02.2017 / 13:47
1
answer

Error Spring MVC Rest Full

Good evening, I'm trying to compile a code to run a simple rest in spring mvc, but I encountered the error "The request sent by the client was syntactically incorrect." Class Controller package br.com.aprendendorest.controllers; import...
asked by 07.03.2017 / 01:43
1
answer

Rest API Django does not work

I have a problem with Python/Django . The school and school_application_info tables are related. However, there is no record with some school_id in school_application_info . So I added null=True, blank=True...
asked by 17.05.2016 / 22:22
1
answer

How to insert a list of data using the volley

My application writes all position information within the field-based table. This table has a column named "SENT". I have to do a select returning all the positions that were not sent and send to a webserver, after sending and the result is O...
asked by 23.03.2016 / 21:09
1
answer

B2W REST / JSON API -failed to open stream: HTTP request failed! HTTP / 1.1 401 Unauthorized

I'm starting an integration with B2W, they use a REST / JSON API, I am not finding where it is wrong in my code, it is something relative to the header, as I test with the chrome dhc complement and register the change correctly: Mycode:$url='ht...
asked by 08.08.2015 / 16:23
1
answer

Problem getting very large JSON in WebService RestFul

We work here on the company with Android + WebService (.Net RestFul) for data communication. We are getting the data in JSON format in a method, below: //Método public Retorno MetodoA(string sConexao, string sBanco, string sImeiDispositivo,...
asked by 20.01.2015 / 12:16
1
answer

Perfomance Restkit with AFNetworking

I have created a reserver using the Slim Framework (PHP), connecting to a MySQL DB. You are on a dedicated server with moderate performance, ie the response is very fast. But I did a test app in IOS where I consult this api and mount a table...
asked by 18.08.2014 / 19:42
1
answer

Uploading files using REST and Java

I'm creating an application and need a way to upload xls / xlsx files, sending the front-end (Ajax) file to the backend (Java) so it can be manipulated. Ajax code: $("#formulario").submit(function () { var formData = new For...
asked by 14.07.2014 / 22:36
1
answer

WebService REST request POST error

When ordering from POST, I get this error message: O servidor remoto devolveu um erro: (400) Pedido incorrecto. IService is defined as follows: [WebInvoke(Method = "POST", UriTemplate = "insert/?id={id}&v={v}&dt={dt}&qt={qt}"...
asked by 28.03.2014 / 18:22
2
answers

Change an entity by passing a list

Hello, I have a class teacher registered and I want to change it by passing an array of materials. I have the following code: class teacher: //... atributos não importantes ao problema @ManyToMany @JoinTable(name = "teacher_x_le...
asked by 11.11.2018 / 17:06