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
-
2
votes2
answers358
viewsGood Practice for Rest Services
When I made my first Rest API, I defined my JSON structure and always returned that same structure even if the pair had given it or not. I talked to a new co-worker and he presented me another…
-
2
votes1
answer40
viewsCordova API Offline
I’m not sure what I want to do is possible. So I was wondering if you could help me? I’m building an app that will consume a Rest API for product listing. I need to make sure that on first access it…
-
2
votes1
answer40
viewsHow to get all posts from Wordpress REST API?
per_page returns posts in the range from 1 to 100, but needed to return 500. How to get all posts from the Wordpress REST API?
-
2
votes1
answer1457
viewsHow do I consume client addressing of an API I want to consume?
I have a PHP API and I’m developing a Mobile App with Delphi Firemonkey, and I need to consume the JSON data that my API returns. I would like to know how I address the client part to access this…
-
2
votes0
answers106
viewsLearning Problem with Springboot
Hello, I’m starting my study at Springboot, where I got to a part that I couldn’t solve on account of an Exception, where I’ve seen on various topics of how to solve, and none worked for me. I…
-
2
votes1
answer255
viewsAsp.Net Razor with Json
I have a question and I have researched several sites but I did not get the answer. I develop systems in .Net with C# in MVC standard and use the on-screen presentation in the traditional View with…
-
2
votes1
answer194
viewsWhat are the differences between MVC and REST architectures using Spring?
I’m wondering which architecture to use MVC or REST.
-
2
votes1
answer308
viewsGeneric Method for REST Query
I need to refactor this method to make it work better. This method works perfectly when calling on an external API Rest returns list. However, it gives exception when the return object of the…
-
2
votes1
answer593
views -
2
votes1
answer791
views -
2
votes2
answers1095
viewsHTTP Error 406 using Rest Delphi components with XML return
I am trying to consult an NFS-e with the REST components in the XE7, in the queries of type Json I could normally, but when the return is of type XML it gives error 406, I tried to send the Accept…
-
2
votes1
answer746
viewsConsulting in a list (IN) - Predicate and Specification - JPA Criteriabuilder
Hello, I have to create a dynamic query based on the following scenario in a RESTFUL application using Springboot and JPA (I am using Jpaspecificationexecutor): I have two entity classes (Entity),…
-
2
votes1
answer242
viewsObject Serialization Error with Spring Data and Spring Web
I was creating a simple endpoint of an entity and ended up getting the following exception: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class…
-
2
votes0
answers114
viewsREST Service within a Web Application
I have a web application with Spring MVC and there is a need for a client to consume a service, so I created in the same project a resource mapped with Restcontroller, when testing the service using…
-
2
votes2
answers106
viewsStandardization in building Rest api with Vraptor
Well I have a question about standardization in the creation of Rest endpoints. According to Vraptor documentation I can set the request path using the annotation > @Path("/paciente-api") here at…
-
2
votes2
answers227
viewsError in creating Rest api in Javascript
The error that is returning is C:\Users\Eric Vitta\Documents\documentos cursos\javascript\src>node index.js TypeError: Cannot read property 'map' of undefined at router.post (C:\Users\Eric…
-
2
votes1
answer43
viewsProblem with running order of endpoints in Express with conflicting paths
I have this question about endpoints express bred. In this first section, the endpoint /anuncios/:search must search in the fields descricao and nome by the text reported. Therefore, a call…
-
2
votes0
answers42
viewsHow to handle complex filters in Rest API requests?
In Rest Apis good practices recommend: GET - List data; POST - Think; PUT - Update data; DELETE - Erase data. Following good practices, to recover a list of data we should use GET and for filters we…
-
1
votes1
answer5979
viewsTake client ip on request
I have a REST service in my application and in it I want to pick up the IP of the client who is making the call, use Spring-mvc in this project, here is the source of the service /** *…
-
1
votes2
answers529
viewsI rotate in my browser Webservice and gives me a strange message
While giving a View In Browser on my Webservice, brought me this message. It doesn’t look like a message that Webservice is all ok. What is this message? Service This is a Windows© Communication…
-
1
votes1
answer221
viewsError posting my Webservice
When I run my Webservice and publish on IIS(7) the following error occurs: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base…
-
1
votes1
answer440
viewsWebapi view content in a view
Hey, guys, all right? I am developing my first application in web api asp.net. And I’m having trouble displaying the content on a view. Controller: public class ListaPresenteController :…
-
1
votes1
answer1150
viewsReturn data from Java to Ajax using Json
I have a Java application, and a module that inserts products into the base using REST. At the base the product id is autoincremental, and as soon as I add the same at the base, I need the id for…
-
1
votes1
answer60
viewsIs there a Pattern design for iOS to consume data from a web-service?
I’m looking for a Pattern design to help standardize the construction of an iOS app that consumes data from a web service. They could say if it exists and the name of this development model?…
-
1
votes1
answer984
viewsPOST Request with token
Start an HTTP request via POST method for the authentication URL, with the following parameters: login password sponse = http://api.dominio.com:8025/name/login? token="MY_TOKEN" The response of the…
-
1
votes2
answers1682
viewsConsume Rest with Angularjs
I created a Webservices to receive query by string and return a list, example: url/mePath/Luiz - Since Luiz is the parameter that will be passed, based on this parameter will return me a list of…
-
1
votes1
answer4138
viewsConsume REST service using Spring Framework
I am developing a web application, using Spring Framework. And I need to consume a service from another application. I know how to send requisitions POST, through using jquery and ajax, but I want…
-
1
votes1
answer597
viewsError 415 when doing json post
I have a CRUD REST application that responded in XML, however, I want to change it and make it respond JSON. I can do GET in restclient, but POST, PUT and DELETE does not, it gives the Unsupported…
-
1
votes1
answer121
viewsHash in a GET type service
I have a service where I make a request of type GET that does a search in the groups of my application, the problem is that the user created a group called #nome-do-grupo, and when he goes to do the…
-
1
votes1
answer152
viewsREST with problem in CREATE
Introducing I am developing an app and using Rails. $ rake routes POST /companies(.:format) companies#create Routes.Rb resources :companies Problem When I step my object to be inserted using Postman…
-
1
votes1
answer743
viewsAPI for viewing places on the map
I am in need of an API that works like HERE Maps, which enables an easy query through a REST service. With it, for example, I can identify stores within a certain range. But I came across the…
-
1
votes2
answers6765
viewsHow to create a REST service with PHP and Mysql and . htaccess
I am developing a small project, where some information should be stored in a Mysql database that is hosted in a PHP hosting, I was wondering if there is a way to develop a REST service to insert…
-
1
votes1
answer156
viewsjQuery calling an action
I am developing a web site in ASP.NET MVC that uses jquery to control some plugins like spinner, toastr and others. My question is whether I should call Action via jquery to validate the model and…
-
1
votes1
answer267
views -
1
votes0
answers34
viewsHow to Do REST Security with Spring Security
People I am trying to implement security on my REST server done with SPRING 4. I am working with annotations. The basics of spring security to protect pages I know. But how to protect the…
-
1
votes0
answers28
viewsJersey API Cache
I’m having second thoughts about Jersey Cache control. Using Queryparam, is there a risk that the browser/server will cache the result? Or this only happens when I work with Pathparam within my GET…
-
1
votes0
answers261
viewsREST + CDI (dependency error)
Hello, people, I come for some help, because it is my first contact with CDI and he does not find my resources. I will post the classes involving the Annotations, injects and console errors. I hope…
-
1
votes0
answers45
viewsJava application running as Windows service
I need to develop a Java application that should run in company branches as a Windows service. The scenario is as follows: I need to get some information from the database of a third-party software…
-
1
votes2
answers50
viewsIs there an API to create a similar Google Directory API service?
I find Google’s Directory API very interesting for bringing together documentation and testing environment in an objective and well organized way. I wonder if there is a similar plugin that can be…
-
1
votes1
answer416
viewsSave Access Token
I’m designing a simple login architecture and I’m in doubt where to save the User Access Token. The system will be developed in SPA using Angularjs and the server will be a REST API not yet defined.…
-
1
votes0
answers68
viewsError while retrieving Web Service Object List (CSV)
I have an error retrieving a list of CSV objects from the server.. I’m using Jsefa to serialize and deserialize Java Beans for CSV and implemented a Messagebodywriter and Reader to make this…
-
1
votes1
answer358
viewsWhat’s the relationship between Oauth and Rest?
good night. I would like to use the API of a particular website (Paid Market to be specific) to build an application. Studying a little of their documentation I saw that their API is based on Rest…
-
1
votes1
answer1066
viewsFormat date in Angular for Java.util.Date
I have the following date generated in Angularjs: 2015-09-14T18:38:03.637Z when I try to give a POST the following error happens in the backend: Caused by: java.text.Parseexception: Unparseable…
-
1
votes1
answer334
viewsPerform function in ng-Bank Angularjs
I am trying to set up a project where a client makes his registration to have access in the system, this registration can only be performed if the client’s CPF exists in the database. I have two…
-
1
votes1
answer112
viewsNested Resources Rails
I created two models in the Rails application, and made their relationship through the declaration in the classes and in the bank as well. I added the configuration to enable nested Resources in the…
-
1
votes1
answer258
viewsWhat techniques can be used to authenticate in REST applications?
I’m developing an application Restful in PHP, I need to do an authentication mechanic on that system, so client applications can consume your data. What techniques can be used to authenticate…
-
1
votes0
answers105
viewsJmeter - Simulate thousands of simultaneous users
I’ve developed a Rest API, and I’m running some tests in the homologation stage. This API has the function of integrating certain branch database information with the matrix database. I wonder if…
restasked 8 years, 6 months ago Van Oliveira 91 -
1
votes2
answers3824
viewsPaging with Spring Framework
I have a question, I need to make a pagination when I return all the records of a table, I don’t have much experience with Spring and I would like to know how it is done, I need to overwrite…
-
1
votes1
answer471
viewsVraptor + Angularjs authentication
I’m trying to authenticate users on my system, but I’m a bit lost. How do I return the logged user from the pro server front-end ? Currently I can check if the user exists in my database as follows:…
-
1
votes1
answer376
viewsConvert JSON to GSON object
I have a webservice ready, which returns a JSON of an object, great, working: Here is the returned JSON: {"Opa":{"nome":"Teste1234"}} This Json is of the following class: public class Opa { public…