Questions tagged as 'restful'

0
answers

What to do when the generated token expires?

I'm developing a rest API with Framework Asp.Net Web Api 2 , using Owin . I have a android application as the client. In case, my system has users and passwords and authenticates normally. I want to know what to do whe...
asked by 01.02.2017 / 18:30
1
answer

Pass a List as a parameter in web services RESTFul Java

Could someone explain me how to get a List as a parameter in a RESTFul Java webservices? I've tried in several places, but I still can not understand. Thanks in advance ! The code below is an example and how I did it in my actual code. In the re...
asked by 28.11.2016 / 14:42
1
answer

Uploading image to webservice

I'm using alamofire to do post to server, I wanted to know how to send an object that has an img inside it. I saw the following excerpt to upload the image let fileURL = NSBundle.mainBundle().URLForResource("Default", withExtension: "png"...
asked by 04.08.2016 / 01:34
0
answers

Upload photo Api Rest nodejs [closed]

I'm developing a restful api with nodejs and mongodb. And I am creating an endpoint for user registration, but I would like to send a photo at the time of registration. Which of the three solutions would be best? An S3 * amazon, I send a...
asked by 08.02.2016 / 21:41
3
answers

Web Services sharing on different projects

I have 2 projects, using RestFull Jersey: ProjectX ProjectY And the User module, this module is responsible for making GET, POST, REMOVE to manipulate User information. This module is shared between these projects. But written in d...
asked by 19.05.2016 / 16:30
2
answers

How 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 wanted to know if I have a way to develop a REST service to insert the data into a MySQL database.     
asked by 06.07.2015 / 22:58
1
answer

AngularJS consume RESTful in different domains

Good afternoon, I'm trying to make a client that indexes the information of several webservices (about bitcoin quotes from several brokers), but when trying to access the webservice the imported json values are not displayed, and pressing F12 in...
asked by 09.12.2015 / 17:30
1
answer

SQL statement in MySQL with CURDATE (), does not display API result with PHP

In this SQL what is wrong? SELECT top.id_topatletas, top.idusuarios, top.posicao, top.workout, top.data_inicio, top.data_fim, user.idusuarios, user.nome FROM top_atle...
asked by 03.09.2018 / 16:25
1
answer

Doubts, API Restfull x Angular x CSRF

I'm developing an application, in the backend I'm developing a Restful in PHP, and in the front, Angular. I have a simple question about CSRF protection: Do I need to protect against CSRF? If yes, how can I make it fully stateless?     
asked by 10.11.2017 / 21:30
1
answer

Why does Retrofit throw an exception when the status code is 204?

After a GET query only to check if a content exists on the server, the return is 200 (exists) or 204 (does not exist). Why does Retrofit throw the exception below when the server returns the Status Code: 204 In Content ?    java.net.P...
asked by 08.03.2017 / 21:39