Top "Restapi" questions

Use this tag for questions on how to build or use a REST API.

What is a good way to transfer binary data to a HTTP REST API service?

We are extending our HTTP REST API to allow clients to upload picture (for the purpose of this question, assuming …

rest http restapi
Python post request with Bearer token

Im trying to make a script that post data on REST service together with Bearer token. Here is working PHP …

python rest restapi
Which HTTP response code for "This email is already registered"?

I'm creating a RESTful API for creating users that enforces unique email addresses: Successful POST /users: HTTP 201 Created If I …

rest http restapi
Does MongoDB have a native REST interface?

I am currently evaluating Mongo and CouchDB for storing data points (analytics). During my earlier interaction with CouchDB, I loved …

javascript mongodb rest restapi
Securing REST API without reinventing the wheel

When designing REST API is it common to authenticate a user first? The typical use case I am looking for …

rest web-services security restapi
Should a RESTful API return 400 or 404 when passed an invalid id

When building a RESTful API and a user provides an id of resource that does not exist, should you return 404 …

rest restapi
REST API authentication for web app and mobile app

I'm having some trouble deciding how to implement authentication for a RESTful API that will be secure for consumption by …

rest authentication restapi
How to expose a validation API in a RESTful way?

I'm generally a fan of RESTful API design, but I'm unsure of how to apply REST principles for a validation …

rest http restapi
Way to specify resource's fields list in RESTful API request

I have a RESTful API within a web-service with resources such as users, posts and so on. When I make …

rest restapi
Why isn't HTTP PUT allowed to do partial updates in a REST API?

Who says RESTful APIs must support partial updates separately via HTTP PATCH? It seems to have no benefits. It adds …

rest http restapi