Questions tagged as 'rest'

2
answers

Best Practices for URI in RESTful APIs

I am doubtful about the URIs of some api resources that I am developing. I have the projects and activities resources with respect to 1-N , ie a project has multiple activities and an activity belongs to a project. What is the right way...
asked by 21.10.2016 / 13:28
1
answer

How to avoid overloading HTTP requests when consuming REST APIs?

I have a REST API made with Laravel and a WebApp (which uses the features of this API) made in Angular.JS. My WebApp is a unique registered user portal, but now I'm creating a website so that non-registered users can only check out a few things....
asked by 12.10.2015 / 14:06
2
answers

What is the correct way to authenticate to a REST API used by mobile applications?

Actually, there are two questions (with sub-questions). Today I have an already implemented token generation mechanism (inherited from a web application) that I'm using in my REST * API for mobile applications. The applications encourage th...
asked by 04.12.2014 / 19:50
1
answer

How to avoid data conflict between two PUT requests in HTTP?

What techniques can we use to avoid collision between data from two PUT requests so that the changes in the second request do not override the first request? Let's imagine the situation: There is a product registered in a virtual store s...
asked by 04.08.2018 / 00:12
3
answers

How to maintain a running nodejs server?

I want to know how to keep my server nodejs in permanent implementation in my vps Ubuntu I bought without the need to have it run the Putty and run the node app.js command. I made a REST API that will be consumed by a mobile applicati...
asked by 19.02.2014 / 15:17
1
answer

Sharing types between API and client application

I'm developing a REST API using ASP.NET WebApi 2 and as I come from the old SOAP standard, I'm used to API-client type sharing . That is, when referencing my service in the client project, all types that are used in the API are created in the...
asked by 15.02.2016 / 14:59
1
answer

How to make GET / POST request with Node.JS?

I need to make a request both post and get from a REST API, I wanted to know how to make the request with Node.js? I found some articles on the internet but nothing succinct.     
asked by 01.01.2017 / 04:32
2
answers

How to display a PDF in the browser with an ajax request?

I make a request like this: $.ajax({type : 'GET', url : URL_APP_CONSULTA_BOLETO_DIVIDA_ATIVA + url}); I have a java method that returns something like this: return (Response.ok(output).header("content-disposition", "attachment; filename =...
asked by 20.02.2014 / 16:00
2
answers

REST Secure Authentication

I searched and found no solution to the following problem: How do I track requests in a given REST service? For example, if I have a blog in which I access my services (insert post, remove post, update post, for example) as follows local...
asked by 22.03.2014 / 19:32
2
answers

Security with AngularJS and Rest

I'm starting with AngularJS and Rest (Java JAX-RS) and I have a question. The functions responsible for Rest requests are easily viewed via the right-click browser Exibir código fonte da página . So, anyone in possession of this can...
asked by 18.09.2015 / 16:38