Most voted "restful" questions
Representative State Transfer (REST) is a software engineering technique for distributed hypermedia systems such as the World Wide Web. The term originated in the year 2000, in a doctoral dissertation1 (PHD) on the web written by Roy Fielding, one of the main authors of the HTTP protocol specification that is used by Internet sites.
Learn more…201 questions
Sort by count of
-
0
votes1
answer68
viewsError Spring MVC Rest Full
Good night, I’m trying to compile a code to run a simple Rest in spring mvc, but found with the error "The request sent by the client was syntactically incorrect." Class Controller package…
-
0
votes2
answers38
viewsDefault of HTTP request
I am developing a restfull API. I have this route: /senha In the POST I saved the password; In the PUT i update the password; In the DELETE i delete the password; In the GET I call the password;…
-
0
votes0
answers188
viewsHow to customize the HTTP return message/code of an expired/invalid token in Web Api 2 + Owin?
When my token expires and becomes invalid, I get a 404 (Not found) error return, but the truth is it should be a 401 (Unauthorized). The problem is I don’t know how to customize it. I’m using…
-
0
votes1
answer2124
viewsDifference between Webservice, API and Restful
I can’t tell the difference between them. All three are web services that can work with data externally, but I can’t understand the difference. Restful works with json, but so can the API and…
-
0
votes1
answer160
viewsGood Practices for URI in Restful API using Laravel
Good afternoon, I’m having to build my routes using the REST standard, but I want to do this using the tools that Laravel offers me, and in the right way. I have the following route to print my…
-
0
votes0
answers137
viewsRun method by JSF automatically
I have a JSF with a p:panelGrid with columns that together form a screen that we call telemetry (large screen with various information passing in real time), in each column I added a method in which…
-
0
votes1
answer1565
viewsSpring Boot - Changing object property names when returning JSON from the API
Good night to you guys! I have a Rest api created with spring boot + Hibernate and all that is right! Let’s imagine the following scenario: The data engineer created the database as follows…
-
0
votes0
answers120
viewsIonic 2 + Cakephp 2.X Rest
How to parse data in json next? I’ve tried using the promise and the observable. { "diaries": [ { "Diary": { "id": "1", "user_id": "1", "title": "T\u00edtulo da agenda", "description":…
-
0
votes1
answer630
viewsRedirect URL in Nodejs
I am trying to redirect my login to a new site after the user validation function. After redirecting the url in Browse is from the url where the login was:…
-
0
votes1
answer65
viewsA data request from another data must respond with 404 or an empty array?
I am working with an API which has the following route users/:id/documents. This route should return a list of documents from a specific user. For example: the route users/:id/documents return all…
-
0
votes0
answers8
viewsIs there a Rest API to run a Colab notebook (via Webhook)?
I have a project in my company, where I developed a script automation in google colab, I need this script to run daily at midnight. Is there some kind of Colab Rest API for me to perform this drive…
-
0
votes1
answer257
viewsSelect which attributes GET returns from the list in Rest
Ladies and gentlemen, I have the following question. I have an application in Rest that when I ask to return the list, comes with many unnecessary fields, "example below". How do I select the…
restfulasked 7 years, 5 months ago Cleriston Lincoln 49 -
0
votes0
answers2043
viewsUnexpected end of JSON input error
I am working with Ionic 3, picking up data through a Restfull API, using PHP and Mysqli, but returns this error: Unexpected end of JSON input. I believe the error is in the API. Follows my code: In…
-
0
votes0
answers68
viewsHow to properly verify the existence of a user in a Restful API (Nodejs) by sending Login and Password in a GET verb?
Verifying a user’s existence through a Restful API would be a GET transaction given that it would only be a select. Briefly would be sending the Login and Password this way: const validator…
-
0
votes0
answers210
viewsFunction fecth: The CORS header 'Access-Control-Allow-Origin' is not present
I am trying to simulate an application I am running on a local Glassfish server. The IDE I am using is: Intellij. I built a method that consumes an API service from an address:…
-
0
votes2
answers825
viewsError in Restful API authentication with Curl PHP
I’m writing a web platform that uses Sptrans RESTFUL API - Living Eye. Authenticate my session with the code: <?php $url = 'http://api.olhovivo.sptrans.com.br/v2.1/Login/Autenticar?token='.token;…
-
0
votes1
answer153
viewsPlay variables to be parameters in the API
I have a website and to enter it you need to log in, and the data are: Cpf and email. And I have an API that I need to play the variables Cpf and email to be parameters in the api, but I don’t have…
-
0
votes1
answer185
viewsVolley Android, recover server response
Hello, I am using Volley for Android to connect to my Webservice, but I would like to display the server response independent of the Status that returns HTTP via webservice. explaining better: When…
-
0
votes0
answers55
viewsJSON is not returning with the accents
I am with a doubt that I do not know what else to do for him to come without mocking the accents, I have tried several ways to put note of the Spring dom Procudes UFT-8 no solution came handy.…
-
0
votes1
answer506
viewsWebservice REST with authentication [ID, CPF, User, Password]
Hello, I’ve been searching the web for a while but I can’t find clear answers.. I want to implement a webservice Rest, with tokens and etc for security, and the webservice consists of only GET for…
-
0
votes2
answers1270
viewsPOST method receiving object vázio. C#
I have a controller with a POST method that always receives the null parameter. I’m sending JSON through Portman. I have tried to put the class as parameter, I have tried for string as parameter and…
-
0
votes1
answer63
viewsNull Exception when importing the service into the Rest controller
In the example below, I am trying to make a Restful Service by fully separating @Restcontroller, @Service and @Repository. But I’m having a difficulty, because when I try to use the service inside…
-
0
votes2
answers474
viewsRestful implementation of express routes do not work on the server
I have a Restful API implemented in Nodejs working normally locally, with all routes responding, all right. However, when putting into production on the Kinghost server only the root route works. I…
-
0
votes1
answer146
viewsRetrieve JSON user data by jquery
I have a json that I am running through the json-server and this in the address: http://localhost:3000/ Inside it, there is a scope of "users", which I would like to take. I have the following…
-
0
votes1
answer320
viewsDoubt about best practices for Rest API (object -> json)
I have doubts about the improvements in json/object conversion between server (Rest api) and client (javascript framework). My question is in relation to objects referenced by the main entity,…
-
0
votes0
answers53
viewsAPI web infrastructure
I am building an API infrastructure layout and would like to see your opinions, as well as scalability ideas and concepts applied. I won’t go into too much detail of internal infrastructure,…
-
0
votes0
answers41
viewsRestful returns Undefined in JS Class
I’m making changes to 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:…
-
0
votes2
answers1529
viewsError - to create query for method public Abstract org.springframework.data.domain.Page
I’ve been line by line to find out what’s different between an object that’s worked and what’s going wrong and I can’t find the problem. This Student object is giving error. If I comment the get…
-
0
votes1
answer112
views -
0
votes1
answer200
viewsConsume API with mandatory parameters
if I have an API that requires two mandatory parameters to be consumed, how should I insert them in a $http request? self.buscaPrestadores = function() { $http({ method: 'GET', url:…
-
0
votes2
answers95
viewsChanging an entity by passing a list
Hello, I have a registered teacher class and want to change it by passing an array of subjects. I have the following code: teacher class: //... atributos não importantes ao problema @ManyToMany…
-
0
votes0
answers126
viewsProblems with GET Angular 7 request
Good evening guys, I’m trying to create a requisition like get in my Angular application, but it’s popping that error. I couldn’t understand what you mean and none of the possible solutions I tested…
-
0
votes1
answer46
viewsJSON does not show up when I re-file
I am developing a PHP API with Slim Framework, but when I require the class general it should make a query in the database and return me the data of this table in JSON. This is the connection class…
-
0
votes1
answer177
viewsPost only the Manytomany relationship
I have the school entities and teacher. I mapped the Manytomany relationship. I have no idea how to save only the list by passing an array of ids. Teacher class @Id Long id; // não importa os demais…
-
0
votes1
answer110
viewsPass parameters on GET
I’m trying to do a GET to validate a user using Cpf and password,using DAO, but I’m not sure when to pass the parameter. Follow the get code private Usuario usuarioLogado; @GET…
-
0
votes1
answer136
viewsEntity relationship error 1:N using orphanRemoval
I am trying to update a record in the database through a REST service with the help of Postman, however is returning me an error: "A collection with cascade=\"all-delete-orphan\" was no longer…
-
0
votes2
answers1098
viewsResponsestatusexception - Spring boot - Return of the message
I am new to java and I am created a training API and I came across the following problem: I do the request via Postman, the return of JSON is ok, but if I do a search that does not return anything…
-
0
votes0
answers53
viewsProblem consuming Rest API
I am trying to consume an api, but it is not returning an internal list, it only returns totalSize and done. Code: public List<PessoaResponseDTO> get(String url) throws Exception {…
-
0
votes0
answers97
viewsREST Springboot API to generate random bet numbers
I am creating a REST API to generate random number for lottery. These are the requirement endpointes. In the first step, we need to build an endpoint that will receive the person’s email and return…
-
0
votes1
answer45
viewsRequest Problems (Java - Spring Boot)
Hey, guys, how’s it going? I have a code for a Rest API that registers courses and students. There is a bi-directional relationship. N Students -> 1 Course mapped as follows: @ManyToOne…
-
-1
votes2
answers668
viewsAsynchronous Call to a Restfull Webservice
I need to make a call to Webservice on Android, and with another class call it. At the end show on design the answer obtained by Ws. I already made the Webservice only that the part of…
-
-1
votes1
answer63
viewsJAX WS RS JPA does not return Onetomany relation in JSON
In my relationship, a Call is related to many Histories. The key to the Call is present in each History. When consulting a History by code, there is a @Manytoone relation that returns the Call to…
-
-1
votes1
answer1212
viewsError : java.lang.Nullpointerexception: Cannot invoke method Trim()
I have tried using Port and baseUri and does not run the rest, always fails. Complete error: java.lang.NullPointerException: Cannot invoke method trim() on null object at…
-
-1
votes2
answers114
viewsdoubt to consume api
I have the following service: [HttpGet] [Route("save")] public async Task<dynamic> save(VendaModel[] venda, string CnpjEstab) { dynamic retorno = null; VendaModel ultima = new VendaModel();…
-
-1
votes1
answer333
viewsHTTP GET - Jquery - Node.js request
First of all, I wanted to say that I’m developer . net, so I’m kind of lost in what I’m doing. If I understood correctly, I downloaded Node.js and inside the Node.js prompt I gave a CD in the folder…
-
-1
votes1
answer684
viewsQuery with conditions using Mongodb Irrigation + nodejs
I have a code that returns me arrays with the parameters I need to feed my HTML page, however, I need to include some conditions in this search so that it only takes the values after a certain date.…
-
-1
votes1
answer106
views@Autowired service does not work on Constraintvalidator in Kotlin
I’ve been using Spring Boot for some time in Java and never had a problem with injections using @Autowired. But recently I decided to transform a Rest API project that was in Java to Kotlin, all the…
-
-1
votes0
answers7
viewsDoubts about route nomenclatures REST
Good night, I am developing a system for a clinic in my region, and I was left with doubts about the names of the routes using the REST standard (new for me). I need to assign a professional…
-
-2
votes1
answer76
viewsHow do I work with chained Hashmap in Java?
I’m trying to popular a DTO through a received Json, in case I’m the Gson library, but I’m having trouble filling the field urlPhoto of my class hotelDTO. I can even convert Json to a Hoteldto…
-
-2
votes1
answer185
views