Questions tagged as 'restful'

0
answers

Webservice Restfull + Jersey + Tomcat 9 return from Json without content-length

I'm developing a Webservice application with restfull + Jersey and Tomcat 9. In this system I need to return a Json from a class (Product) to an android application and use contentLength (android) to retrieve the file size and use in progress ba...
asked by 03.11.2018 / 12:47
1
answer

Consume API with mandatory parameters

If I have an API that requires two mandatory parameters to be consumed, how should I insert them into a $ http request? self.buscaPrestadores = function() { $http({ method: 'GET', url: self.urlPrestadores,...
asked by 06.10.2018 / 05:23
2
answers

HTTP request request

I'm developing a restFull API. I have this route: /senha No POST I save the password; No PUT I update the password; No DELETE I delete the password; No GET I call the password; But when I use...
asked by 11.10.2018 / 18:15
1
answer

Error: java.lang.NullPointerException: Can not invoke method trim ()

I've tried using Port and the baseUri and does not run the rest, it always fails. Full error:    java.lang.NullPointerException: Can not invoke method trim () on null object at org.codehaus.groovy.runtime.NullObject.invokeMethod (NullObjec...
asked by 29.09.2018 / 20:38
0
answers

Returning entities according to search using Predicate

My name search is not working, somehow it is not passing Predicate . When I make a request at: localhost: 8080 / citys? name = 2 You will have the same entities as: localhost: 8080 / citys Note: my column name is city 1,...
asked by 30.08.2018 / 19:37
0
answers

RESTful returns undefined in JS Class

I'm making changes to the HTML after taking data from the LastFm API, working with class in JS, making method calls within the class itself, where the date was called before, but this returns undefined: class Tidal{ constructor(ev)...
asked by 26.08.2018 / 14:46
0
answers

API Web Infrastructure

I'm building an API infrastructure layout and would like to see your views, as well as scalability ideas and applied concepts. I will not go into many details of internal infrastructure, behaviors, and features. Currently the layout for th...
asked by 10.08.2018 / 22:25
0
answers

Can not find a supporting object '[object Object]' of type 'object'

I'm not able to do a simple getAll in an entity. I'm using spring boot + angular 6. The spring console shows that the query is being done. error that is appearing in the browser.    Can not find a supporting object '[object Object]' of typ...
asked by 19.07.2018 / 01:07
0
answers

How to organize a json decode with double keys?

Hello, at some time, this problem with organizing the json_decoce api rest Today, I have a problem with the rest of the api api that I use, the main content is in other keys Ex: {"status": "success" {"Name": "Teacher", "id": "1"}} I...
asked by 16.07.2018 / 17:35
1
answer

Doubts about best practices for API Rest (object - json)

I have questions regarding the practical improvements in json / object conversion between server (api rest) and client (javascript framework). My question is is regarding the objects referenced by the main entity, should I send only IDs or compl...
asked by 17.07.2018 / 15:18