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
-
2
votes1
answer1348
viewsPass a List as parameter in Restful Java web services
Could someone explain to me how to receive a List as a parameter in a Restful Java webservices ? I’ve searched a lot of places, but I still can’t figure it out. Thank you in advance ! The code below…
-
2
votes0
answers959
viewsWhat to do when the generated token expires?
I’m developing an API rest with the Framework Asp.Net Web Api 2, using Owin. I have an app android as the client. In this case, my system has users and passwords and authenticates normally. I want…
-
2
votes3
answers58
viewsShare Web Services in different projects
I have 2 designs, using Restfull Jersey: Projectox Projectoy And the module of User, this module is responsible for making GET, POST, REMOVE to manipulate the information related to User. This…
-
2
votes1
answer191
viewsJSONP breaks at two points (" : ")
The server sends a JSON, normal. Follows the code: @GET @Path("email") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public String getEmail(){ ViewStatisticsEmail…
-
2
votes0
answers483
viewsSpring Security Oauth2 in API Rest
Good morning. I have a Web Service Rest implemented and I am working on the security of it at the moment. This Web Service has been implemented using Spring Boot. Initially I will have as customers…
-
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
votes0
answers101
viewsDocumentation framework for java REST API
Hello, I have a java project, with REST Apis. I wanted to create a documentation wiki (markdown+Swagger) on Apis locally, including also a way to test the API (console API/explorer). These are…
-
2
votes1
answer195
viewsRestful with Spring, Hibernate, Maven, Postgresql and Wildfly - Createcriteria
I am doing a Restful project with the following frameworks and am going through a problem, I created a User class to relate to the database, then I created the userDao to carry out the CRUD methods…
-
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
votes1
answer595
viewsQuestions Spring Boot Web App -> Android
A few weeks ago I finished the project of a web system that makes basic Ruds, I used Java, Maven, Spring Boot, Hibernate, Bootstrap + Thymeleaf pro frontend, etc... And I deployed to Heroku using…
-
2
votes1
answer216
viewsController exists but Lumen says it does not exist
My routes are like this. http://localhost:8080/api/v1/Communities <- this is the url I’m requesting $app->group(['prefix' => 'api/v1'], function($app) { $app->get('/',…
-
2
votes0
answers83
viewsQuestions about Oauth and Tokens in an API
Before, I’d like to contextualize my scenario: I am a student in the field who has huge passion for mobile development and recently I have seen the need to create my own API’s to enable conversation…
-
2
votes1
answer1640
viewsPicking up parts of a JSON vector
I am doubtful about the GET function of my JS (React JS) code, I have the GET function using the Fetch api, it returns the values a certain link.json containing an array. Using this link as an…
-
2
votes1
answer1598
viewsRemote server returned an error: (400) Incorrect Request
I created two methods, one for authentication via A1 and A3 type certificate and one for sending an xml, both of which request a client’s Rest api. In the authentication method, I send my…
-
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
answer693
viewsClient REST process JSON replay without knowing domain objects
I am making a Restfull server with Spring MVC, the controller only returns JSON, until ai blz, would my client know nothing of the domain classes and still process the requests? I was thinking of…
-
1
votes1
answer110
viewsWCF Restful Https for a Single Method
I have a WCF Restful that I am using for a mobile application, I need a single method, the payment, use HTTPS, I do not want to enable HTTPS for the entire service because some methods return a…
-
1
votes2
answers1757
viewsRestful Web Service Authentication with PHP
Hello I am developing a Restful api, but I wonder if it is safe to authenticate users by passing the token in the url? And if there is any other safer method.
-
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
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
votes0
answers92
viewsRestful web service + common java project
I have the following problem, I have a web test service created in a separate project(I) in eclipse and another java(II)(Drools) project. How do I make the two communicate being in different…
-
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
votes1
answer2484
viewsConsume REST API in Node.js + Curl
I know there are several packages in Node to consume REST API but I need one that uses cURL. For some reason (which I haven’t discovered) I can’t authenticate with existing ones. I tried to…
-
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
answer136
viewsWCF service hosting with endpoint creation?
I noticed that when running a Rest type project when opening the interface, opens the internet browser is lists all the contents of the folder, being necessary to select the ".svc" when running the…
-
1
votes0
answers99
viewsRestful resteasy - Client (Ava.lang.Nosuchmethoderror)
I’m trying to access a Webservice Code: public void testeWSRestful() { Client client = ClientBuilder.newBuilder().build(); WebTarget target = client.target("http://localhost:8080/teste"); Response…
-
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
answer6018
viewsHow to make a POST using the Httpurlconnection class of Android?
I need to send a JSON generated in the application Android for a web application. Using the class HttpUrlConnection I did the following encoding: private void sendPost(String url, String postParams)…
-
1
votes1
answer225
viewsSpring Security Oauth + Firebase
Good afternoon. I’m implementing the security layer of my application. I decided that we will use Firebase to perform the authentication, and when it returns the access token to the client it will…
-
1
votes1
answer487
viewsAngularjs consume Restful in different domains
Good afternoon, I am trying to make a client that indexes the information of various webservices (on bitcoin quotes from various brokers) but when trying to access the webservice the values imported…
-
1
votes1
answer153
viewsDelete method (Restful)
Would you like to know how I make a delete method that gets a list by parameters? I mean, instead of just passing the ID of the item to be deleted, I want to allow you to be selected N items and…
-
1
votes1
answer164
viewsWhen running PUT method on Grails application system inserts new record instead of updating
When trying to run JSON below via PUT method in a Grails application the system inserts a new record. Urlmappings.groovy class UrlMappings { static mappings = {…
-
1
votes1
answer176
viewsWhy does Retrofit make an exception when the status code is 204?
After a consultation GET only to check if a content exists on the server, the return is 200 (exists) or 204 (there is no). Why does Retrofit trigger the exception below when the server returns the…
-
1
votes1
answer40
viewsProblems with Ws
Personal I am when runs the page to generate the json it only tras null , already I checked it is taking the data of the database the stranger and q is giving this message : Information: Scanning…
-
1
votes1
answer33
viewsQuestions about API
To make some requests to the API it is necessary that you are logged in to the site. However, I had no idea how to do this, as I knew that API has no sessions. So, I did a search and found the…
-
1
votes1
answer505
viewsArchitecture API Restful
I’m building a Restful API with spring MVC and I have 2 non-functional requirements that I don’t understand how to attack them. The API must support 100 requests per second; The API should provide…
-
1
votes0
answers98
viewsHow to get nested Rest?
I happen to have the classes Pessoas, Profissoes, ProfissoesPessoa and QualificacoesProfissoesPesssoa In thesis my Models is so below: # -*- coding: utf-8 -*- from django.db import models from…
-
1
votes1
answer672
views -
1
votes1
answer98
viewsDoubt, API Restfull x Angular x CSRF
I am developing an application, in the backend I am developing a Restful in PHP, and in the front, Angular. I have a simple question about CSRF protection: It is necessary to protect against CSRF?…
-
1
votes1
answer357
viewsRestcontroller Spring, how to limit the number of requests!
Dear friends, I have a API Rest with the RestController from Spring, it receives hundreds of simultaneous posts, and with each post, I need to query and store data in the database. The problem is…
-
1
votes1
answer940
viewsAjax request for server
My minimum is the following, I am developing an API for a bakery, where it may be on the same server or different server, I am using the framework laravel in the version 5.2.*. In order to…
-
1
votes1
answer84
viewsRetrieve Bigdecimal Value from @Pathparam
I have the following call http://localhost:8080/app-teste/produto/1234/76.60 and I want to recover like this: @Get("/{produtoDto.codBarras}/{preco}") public void produtoComPreco(ProdutoDto…
-
1
votes0
answers18
viewsSend csfr_token from a client
I wonder if you have how to send a csrf_token from a client application to my webservice Or do I have to disable Laravel TOKEN check? If you can send it, how is it? That I want to test from Postman…
-
1
votes0
answers165
viewsMaking a relationship update using REST, Jax-rs, Jersey and Javascript
Well, I took a basis to make a simple CRUD of just one table using REST and the others that I put in the question, everything worked perfectly, until I put more tables(classes) and relationship…
-
1
votes1
answer1229
viewsConfigure Slim Framework and Apache 2
Hello, good afternoon. I recently hired a linux hosting service. My site uses the Slim Framework, but I’m not able to access its routes when it’s in production, but in the xampp localhost, it was…
-
1
votes1
answer285
views -
1
votes1
answer74
viewsTomcat 9 - application/json was not found
Greetings, I am developing a WS in Jersey/Restful which is working properly in Glassfish but in Tomcat I get the error when trying to consume the service. GRAVE: Mapped Exception to Answer: 500…
-
1
votes1
answer793
viewsExample of request with Delphi
I need to consume a Rest api that returns json. The system was made with Delphi, I’m using the ide Delphi xe7, I never made requests to consume api on desktop systems, based on where I start? Check…
-
1
votes0
answers387
viewsError: $http:baddata Bad JSON Data
I am finishing developing a web application but I have a problem. All my application was developed in Python, Restful, Angularjs and Chartjs. I am importing information from the database via python…
-
1
votes1
answer406
viewsLong running period web service
I am creating a webservice that makes consult in a DW these queries for having functions of aggregations and everything else take a little more time than normal (something around 2 - 5 minutes),…