Questions tagged as 'rest'

1
answer

What to use to connect to the Internal Only Access Api Web

I am a beginner and I built a Mobile application in C # that connects to an Api Web. However, Web Api will be on a server that has only internal access, which theoretically would protect the DB. How can I make my (public) application have access...
asked by 21.07.2016 / 17:32
1
answer

How to consume REST API from 4Shared using PHP?

I have tried every way to use this new 4SHARED API, both with curl and file_get_contents and I can not authenticate! 4Shared has not provided any class like twitter and facebook available and I'm having trouble making the request. Document...
asked by 04.03.2016 / 19:28
1
answer

Is it possible to change the format of the json file?

I have a code that generates a Json file in this format: [ { "$id": "1", "poule": 73, "idusuario": 4, "vendedor": "ITAMAR SOUZA", "total": 50.00, "datajogo": "2016-01-19T00:00:00", "terminal": "(11)985590116",...
asked by 22.01.2016 / 02:18
1
answer

Application Rest in PHP with user logged in

I'm developing an application in PHP Rest API. This application will be accessed via Web and Mobile. It turns out that users should log in to be able to consume the Rest service. My question - How do I keep users logged in to a REST applic...
asked by 24.03.2016 / 16:12
2
answers

REST in Java Spring project does not work

I created a project in Spring Tool Suite to test a web system and REST, in the same project, worked to create a static html page and load in the browser, but I created a java class for GET request, but whenever I call the error code 404 and did...
asked by 27.03.2016 / 04:34
1
answer

How to get dynamic data returned by cURL?

Good night, I need to return data from a specific site for my application, for this I chose to use the cURL () PHP method, it sends a post and I return the information I want, the problem is that in that return comes the complete page of the for...
asked by 11.02.2016 / 22:48
1
answer

Check Connection with the API in real time AngularJS

I know you can check for an internet connection, but you could check if my application is connected to the API where both are on the local network. For example, if a problem occurs on the network and the application can not communicate with t...
asked by 16.11.2015 / 17:58
1
answer

Uploading and Retrieving an Image with Angular

Let's say I have a user registration form where I want to save a photo of it. I send this data by POST to the server (Java) where I make the inclusion in the database. What better way (practice) to send this photo along with the other...
asked by 25.09.2015 / 20:12
1
answer

Uploading Angular Files

I have a button where I select a file, I would like to upload this file to my server ( Java + Vraptor ). I can already get the file and also save the file name in the database along with the data of the collaborator. Now we just need to se...
asked by 28.09.2015 / 16:53
1
answer

Ajax REST: PUT / DELETE does not work

I have 2 applications: 1) a Rest API on an XPTO server (using laravel 5.1), which has: ->header('Access-Control-Allow-Origin', '*.xpto.com.br') ->header('Access-Control-Allow-Credentials', 'true') ->header('Access-Control-All...
asked by 12.01.2016 / 22:04