Questions tagged as 'rest'

1
answer

Get url parameter in GET request using REST

Hello everyone, I have a question. When I make the request:    GET / withdraw / 30 Since the value "30" is not bound to a key, then you can not use $_GET['chave'] . The way I found it was to do this: $valor = end(explode("/", $...
asked by 14.07.2015 / 01:03
1
answer

Spring MVC REST JSON

To have a problem, in my controller when I have some entity with relationship it does not return the JSON, I already try to put the @JsonIgnore in the get of the references entity but nothing follows the code. @Entity @Table(name="tb_consumer")...
asked by 01.09.2014 / 20:07
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

Doubt on how to publish a method in a web service, hide

What I'm going to ask, I do not know if it's possible or how. Well, I have a REST that is now okay. There, they changed a rule here that directly affects the REST API. I have a method that generates ID for partners. So far so good, but now I nee...
asked by 06.06.2014 / 18:33
1
answer

Error consuming method of a web service rest

I created a method where my partner, besides receiving data from our base, also sends us. Well, that was working well. Then I discovered that there was a field missing. I added this field in the interface and also in the method. Well, I do not k...
asked by 04.06.2014 / 23:50
0
answers

Error in metadata type when I try to do POST

I have this code: function insertuser(obj){ var listID = obj.getAttribute('data-listid'), itemID = obj.getAttribute('data-itemid'), URLID = obj.getAttribute('data-itemurl'); var UserId = _spPageContextI...
asked by 02.01.2019 / 15:37
1
answer

enroll_manual_enrol_users, link user to course in Moodle via webservice

I need to create a link between a user and a course, I would like to do this using webservice. moodle moodle math math math math math math math math math math math math math math math math math But if I try to use the following err...
asked by 11.03.2014 / 22:08
0
answers

Spring Data jpa save () method does not work, returning an object with id null

when testing the call in postman it returns the object as if it were saved but the id comes with value zero, follow my code below @Entity(name = "TB_CLIENTES") public class Cliente implements Serializable { private static final l...
asked by 13.11.2018 / 19:31
0
answers

How do I download a PDF for my application where the request made to the API returns Content-Disposition attachment?

My application makes a connection to an API that returns a PDF. This PDF is returned as an attachment according to the following image and when I try to save this file to any folder through my application, or an error occurs or the file is saved...
asked by 14.11.2018 / 13:24
0
answers

Login on Android using Rest Slim

I need help to make a comparison with the value returned from the function in PHP, in the application it shows this error: java.lang.NullPointerException Code on Android contactSelect = new JsonClassSelect().execute(new String[]{"http://...
asked by 18.11.2018 / 21:58