Most voted "rest" questions
REST (Representational State Transfer) is a style of software architecture for distributed hypermedia systems, such as the World Wide Web, using simply HTTP. It has grown in popularity over RPC architectures such as SOAP, due to intrinsic client-server decoupling, thanks to the uniform interface that establishes between heterogeneous systems.
Learn more…552 questions
Sort by count of
-
0
votes1
answer96
viewsWeb api 2 within MVC project. How to prevent redirection to login page when token is not valid
I’m doing a Rest API on an MVC project. On the API controllers (ApiController) place the Dataannotation Authorize, when the token entered is invalid, it detects and tries to redirect to the login…
-
0
votes1
answer214
viewsJava Restful API gets wrong date from POST JSON
I have a java Rest API that is getting the wrong date. Javascript sends the following JSON: { "pessdtcad": "2018-02-24", "dataNascimento": "1984-05-18", "nome": "GUSTAVO DE FREITAS", "sexo": "M", }…
-
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
answer269
viewsError 500 in java webservices when testing in Postman
I am a good time trying to solve this problem,I configured my environment about 3 times but when it comes to testing Postman always gives the error 500,I believe that my problem is not in the entity…
-
0
votes1
answer143
viewsRest Apis for e-commerce
I’m trying to build an e-commerce with a friend and we’re thinking about putting together a Rest api to access the bunch of data and create a website and an app to consume it. Since this is an…
-
0
votes1
answer108
viewsProblem performing API requests
I’m trying to place requests to an API: EGOI but get an error. The request is as follows:: http://api.e-goi.com/v2/rest.php?method=checklogin&apikey=minhaAPIKEY You know how I pass parameters to…
-
0
votes1
answer685
viewsHTTP Status 405 - Method Not Allowed in the @DELETE method
I created a webservice that accesses a Mysql database, but I can’t delete records, I always get the following return: HTTP Status 405 - Method Not Allowed. The method Received in the request-line is…
-
0
votes0
answers24
viewsRest Server - Matrix/Branch
I have a Rest server that brings me the requests of the parent company, now the client has opened a branch. How do I have Rest log into the branch bank when the user logs into the local desktop. My…
-
0
votes1
answer57
viewsURI Rest with Httpservlet
So, guys, I’m developing a mini framework for study purposes, using the Java front controller, and I came across the following problem. First of all I’ll explain how it’s working. I embed the Jetty…
-
0
votes2
answers928
viewsJava Rest Client Receiving a Localdate
I’m doing a test client in java. My book class is like this: public class Livro { private Long id; private String nome; @JsonFormat(shape = JsonFormat.Shape.STRING,pattern="dd/MM/yyyy") private…
-
0
votes0
answers477
viewsExample Login with basic auth authentication using Alamofire?
I’m trying to make a login screen where I use Alamofire to make the request, but with the examples of the site Alamofire is not working. If anyone can help with an example code, I would really…
-
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
votes0
answers451
viewsCreating custom map with multiple points, manageable by Wordpress
You know how to generate a json file in wordpress?. I’m trying to create a map where custom points are manageable by Wordpress, I’m using the plugin ACF Advanced Custom Fields, where you create a…
-
0
votes1
answer83
viewsAfter starting a pdf download service in jmeter, the "badly formatted" Sponse can turn into a pdf? If so, how?
I’m working on a stress test where I download a file, in a very simple GET service: /api/report/XXXXXXXX/user/23452/file/9989/download Everything happens OK, I wonder if the download’s answer, which…
-
0
votes1
answer534
viewsI can’t "read" a JSON
I am working on the FLUIG (TOTVS) tool, and I want to read a JSON that is delivered via REST. Here is a photo of the URL (intranet): Contents:…
-
0
votes1
answer259
viewsREST - Send null to Integer parameter
I have the following situation in my REST (Jersey): URL: http://localhost:8080/api/listar_log_utilizacao/null Code: @GET @Path("/listar_log_utilizacao/{idUsuario: .*}")…
-
0
votes1
answer25
viewsEndpoints using Vraptor
I have a problem here but I do not know if it gives p/ solve . I have a method that has many parameters so I made a kind of filter, and it was like this : @Get("") public void findByFilter(Filtro…
-
0
votes1
answer150
viewsError 405 - Cross Domain Request
Guys, I’m making a request for my page on github (tiagosilveiaa.gihub.io) for my test server, just to run the script of the same form, but I was presented a message that the protocols were different…
-
0
votes1
answer41
viewsDjango REST Swagger - Gera 2 GET methods
I am implementing a REST API with Django REST Swagger 2.2.0. For a given endpoint I have defined that the following methods are available: http_method_names = ['post', 'put', 'get'] However, in…
-
0
votes1
answer372
viewsNumber of consultations held Nodejs
I would like to know the best way to get the number of requests made to a nodejs server since the last Restart. For example: Admin: Node index.js User: 127.0.0.1:3000/all User2: 127.0.0.1:3000/all…
-
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
votes3
answers1210
viewsREST webservice GET method with token in external browser
I am developing a client who consumes a webservice, all POST methods are ok. Has a GET method that should return an HTML page for client registration. in this method, it is necessary to set the…
-
0
votes1
answer67
viewsUsername change in token OAUTH2
I have a Rest API in spring with OAUTH2 my doubt is the following, it is possible to change the username that is written in the token of each session of OAUTH2. My problem basically is, that to…
-
0
votes1
answer68
viewsA Rest API is a combination of . EXE and . DLL’s?
I would like to know exactly how a Rest API works for the files that are part of it. See if my understanding is correct: When it is on the server, running, there will be a file. EXE running…
-
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
votes1
answer213
viewsREST API Consulting another API
I need to make a REST API, which would query data from a cloud API, and return in the app in json format, but even with a lot of research, I didn’t find anything like it, I just wanted to know how I…
-
0
votes0
answers20
viewsStart http server inside Electron
I wonder if it is possible to start a Rest server within the Electron. I need that while the application is open it is possible to access an http route.
-
0
votes0
answers45
viewsError loading Codeigniter Rest Server language
I am coding an API with Codeigniter and, as many have recommended, I am using the library Codeigniter Rest Server(Repository). I followed the tutorial recommended by the developer himself but I got…
-
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
answer274
viewsHow to integrate CDI-Unit with Jersey Test Framework?
Hello. I am working on a Ws Rest with CDI and Jersey. I want to create a test unit with Junit and due to CDI ended up using the CDI-Unit Runner. I found CDI-Unit simpler than Weldjunit4runner. Now,…
-
0
votes0
answers47
viewsSearch only a value via shell script
Galley, I am creating a script to fetch a value, however, within the BDD there are repeated values and I would like to search only one of each. For example, there are several units for each state,…
-
0
votes1
answer359
viewsHow to implement Rest application in production? (Web or cloud servers)
Guys, I’m new at low platform and I’m learning java doing a small android project that queries database, but I saw that android is not cool to communicate with database directly, so I learned to…
-
0
votes1
answer177
viewsRest Spring server identifying a point as a regular expression
I have a Rest service with the following method: @RequestMapping(value = "/usuario/{login}", method = RequestMethod.GET) @ResponseBody public ResponseEntity<InputStreamResource>…
-
0
votes1
answer236
viewsLambda or Linq brings me all the fields and not only those of expression
Just for learning even, understand the section. I did a lambda of a bank with only 6 fields, like this: public List<LiberacaoDTO> getAutoriza(int idorcamento) { var lista = contexto.Liberacoes…
-
0
votes1
answer320
viewsXmlhttprequest cannot load no Vue js
My app.See <template> <div id="app"> <h1>{{ titulo }}</h1> <li v-for="usuario of usuarios"> </li> </div> </template> <script> export default {…
-
0
votes2
answers366
viewsReturn an object from two or more tables to the fields
I have done some posts on Rest and Lambda, and to give a close on this subject(I hope), I have a question. A colleague here at the site recommended that I create a DTO and bring the database data…
-
0
votes0
answers449
viewsLaravel Expired Page, why?
I’m creating a Rest api here, for some reason I get this message "The page has expired due to inactivity. Please refresh and try again." Segue Controller <?php namespace App\Http\Controllers; use…
-
0
votes1
answer1443
viewsFlask connection between two machines
I have a Client-Server application in Flask, running the two files on the same machine the connection works perfectly, but when I try to run the client on a different machine, the connection is not…
-
0
votes3
answers1247
viewsService does not execute controller method
This message I get in the browser or Postman "Message": "No HTTP resources matching URI of request 'http://localhost:9078/api/items/1000012105'.", "Messagedetail": "No action found in 'Items'…
-
0
votes1
answer85
viewsDoubt with Rest service and with put verb
I just need to update two fields of my model. At get I pass a DTO to my App. The question is: When I go to do my update(put verb) do I need to load all the property or just the one I will update?…
-
0
votes1
answer1067
viewsRetrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT
I’ve done some Retrofit projects and it always worked but I’m doing one that consumes the end-point of api.github.com and is giving an error and I’m not able to find a solution, I’ve done everything…
-
0
votes1
answer388
viewsConsume REST IONIC3
hello, I am new in the area of Web and Ionic3 and I have a problem, I followed a tutorial to consume a API Rest, I managed to bring the list with users, however I want to bring a specific user and…
-
0
votes0
answers650
viewsMaxreceivedmessagesize (6553 6) was exceeded. How to resolve?
I am consuming a web service by SOAP, but the following message is displayed: The maximum quota size of incoming messages (6553 6) was exceeded. To increase the quota, use the Maxreceivedmessagesize…
-
0
votes0
answers1832
viewsUpload photo and json in the same request - Postman
I’m having trouble sending in the same request a photo and a json by Postman. I need to send the profile photo of the user and at the same time receive a json with the data from it. //Instância da…
-
0
votes1
answer3709
viewsJSON Data format
Hello personal I have a webservice that should fetch some infections in the database and return a json object and I’m having problems with date. here is the object import…
-
0
votes0
answers155
viewsHow to implement the HTTP protocol DELETE method in a Java Web Service REST
I am wondering how I could implement the DELETE method of the HTTP web service REST JAVA protocol, when I run it says that I am running the GET and not DELETE method. //Method called in Web Service…
-
0
votes0
answers84
viewsSend information to Rest and trigger notification
I’m in doubt in the construction of a REST, not well in construction, but which way to go, what approach. See my business. 1) The customer asks for a discount. 2) As the seller is not allowed to…
-
0
votes1
answer182
viewsHow to receive data from a Rest API using Apache Camel
And how do I receive data from a server REST passing an authorisation of the type basic in the header? I’ve tried so many ways and it doesn’t work, and when I test Postman, works normally. I’ve…
-
0
votes1
answer213
viewsHow to create a WCF (.NET) POST type method that receives a String parameter from the URL and Stream via POST?
I tried to use in my service but I can’t get anything other than this error. Error: ExceptionDetail, provavelmente criado por IncludeExceptionDetailInFaults=true, cujo valor é:…
-
0
votes1
answer320
viewsError while executing POST method
I am facing a problem regarding the POST method, when triggering this method it normally inserts in the database, but the application (Node index.js) is finished, at the command prompt I get this…