Questions tagged as 'restful'

1
answer

How to persist a record in the webservice database through restful Java?

I already have a method that takes a json and persists in the Mysql database. I can test it by the interface created by Netbeans, which has a field for inserting a json, but how do I, within a java application, make an http request by passing js...
asked by 06.09.2015 / 07:06
1
answer

Authentications via OAuth for REST APIs

In almost all social networking APIs it is necessary to authenticate your app with OAuth, in order to use the features of it. How is this process? In my case, I'm trying to get a list of the followers of a particular blog via the Tumblr AP...
asked by 22.04.2014 / 20:17
3
answers

What is the correct way to pass the paging data in the REST response?

In more robust applications where a table can have millions of records, it is important to implement paging in a REST API. I have seen in some projects two ways to return paging information (page number, page size, sort order, etc.) In the bo...
asked by 12.04.2017 / 19:31
1
answer

Login with Android PHP and Mysql

Hello! Following a tutorial I created an app that includes registration and login with PHP and MYSQL android, the registration works perfectly, except that in the login part when the inserted data is correct instead of taking me to another scree...
asked by 14.08.2017 / 17:27
1
answer

Restricting access to data with REST

I would like to know if it is possible to restrict access to the data of my REST application. For example, I have the xml / json that it returns in link >, where it returns me to my list of users. So anyone who discovers the url, c...
asked by 25.07.2014 / 22:17
1
answer

Cookies or Session by JavaScript

I'm working on a project, and the backend (java) is completely separate from the front-end , and they communicate with REST . > My question is, let's start working in the authentication area, and was wondering if you can control authenticatio...
asked by 02.07.2014 / 19:48
2
answers

JavaScript - React JS

How do I get a part of a JSON, put in a variable, and then play this variable in a widget of my layout? Example: ( link ) I want to get the value of "ip", and put in my widget instead of the value '1,410' . constructor(props){super(props)...
asked by 04.11.2017 / 18:13
1
answer

HTTPS in Rest Architecture

I have a web service written using SpringBoot running on Tomcat and a client application written in AngularJS running on Apache2. I would like to know how the SSL issue works for this case. Should SSL be configured on Tomcat and Apache2? If so,...
asked by 14.02.2017 / 11:52
3
answers

Search / object register via REST url and register with SPRING

I'm new to REST and Spring. I'm doing an exercise where I have to fetch a client via url and return (GET) it in JSON format and insert (POST) a client in JSON format. To search will be in the template below, using GET: http://localhost:8080...
asked by 28.10.2016 / 00:42
1
answer

Save data via POST on the bank with Vraptor

I have two methods in my Controller , one that lists all the data in the database and one method to save data in the database. I can already list all data when accessing URI but when I try to save from this error:    java.lang.Il...
asked by 10.09.2015 / 20:12