Skip to content
Bugwise
Menu

REST API

Also called: REST, RESTful API

The most common style of web API: each thing has a URL, and HTTP methods say what to do with it.

Definition

In a REST API, an order lives at an address like /orders/1007. GET reads it, POST creates a new one, PUT or PATCH changes it and DELETE removes it, and the status code says how it went. Most apps you test talk to their server this way, usually sending and receiving JSON.

In practice

GET /orders/1007 returns the order as JSON with status 200; DELETE /orders/1007 returns 204.

Related terms

Esc

Type to search the whole site.