Questions tagged as 'restful'

1
answer

Playing variables to be parameters in the API

I have a website and to enter it needs to log in, and the data is: cpf and email. And I have an API that I need to play the cpf and email variables to be parameters in the api, but I do not have much knowledge in api and also just have the link...
asked by 15.12.2017 / 12:52
2
answers

Restful API authentication error with PHP cURL

I am writing a web platform that uses the API RESTFUL of SPTrans - Live Eye . Authenticate my session with the code: <?php $url = 'http://api.olhovivo.sptrans.com.br/v2.1/Login/Autenticar?token='.token; $curl = curl_init($url...
asked by 14.12.2017 / 17:39
0
answers

JWT doubts in practice

I created a portal where the user registers and accesses it with cpf and email. When the user enters the portal, it will have a table that will be filled according to which user just entered (there is only 1 api with data of several users), and...
asked by 19.12.2017 / 16:40
1
answer

Using Jparepository and pageable can I do a partial query?

I have an object that is persisted with jparepository , I use pagination but it returns all fields which is not necessary for the application. So is there any way to set a @Query to just get some data? @Query(value = "SELECT p.id...
asked by 07.12.2017 / 21:33
1
answer

What would be the @DELETE methods of a RESTfull java api?

I am using FullEntityRepository of deltaspike , Response has to be a status 204 if it works, and status 400 if it does not. Any tips? Layer service: @Transactional public void deletar(Integer id){ MotivoConc...
asked by 09.12.2017 / 16:06
0
answers

How to properly verify the existence of a user in a RestFul API (Nodejs) by sending Login and Password in a GET verb?

Verifying the existence of a user through a RestFul API would be a GET transaction given that it would only be a select. In short, you would be sending the Login and Password in this way: const validator =require('validator'); app.get('/use...
asked by 17.10.2017 / 16:42
1
answer

Firebird with restfull service and web api in C #

Hello, within a project I came across the following situation, I need to replicate information from a Firebird Desktop db to a db SQL Server Web, as both architectures do not talk to each other, the solution found is an api web application and wo...
asked by 19.09.2017 / 03:04
0
answers

Error Unexpected end of JSON input

I'm working with Ionic 3, getting 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. Here is my code: In the API - app-produtos.php &l...
asked by 20.09.2017 / 23:35
1
answer

Select which attributes the GET returns from the list in Rest

Yours, I have the following doubt. I have an application in Rest that when I ask to return the list, it comes with many unnecessary fields, "example below". How do I select the attributes of the entity class that it should return? My get: @...
asked by 12.08.2017 / 02:12
0
answers

Encapsulate responses from RESTful Web Service requests on the server side

Hello, Developed a RESTful Web-Service in PHP using the framework SLIM and an android application to consume his services. It's working fine, however, GET request responses, which are returned in JSON format, are fully exposed when I access t...
asked by 06.07.2017 / 00:23