Skip to content

Overview

A REST API (Representational State Transfer) is a popular architectural style for designing APIs and web services. It enables communication between client and server through standard HTTP methods such as GET, POST, PUT, DELETE, and PATCH to transfer data.

REST APIs are stateless, meaning the server does not store any information about the client between requests. This stateless nature makes REST APIs easier to maintain and scale.

HTTP Methods

HTTP Method Usage
GET /users Retrieve a list of users.
POST /users Create a new user.
PUT /users/{id} Update the information of a specific user.
DELETE /users/{id} Delete a user.

HTTP Status Codes

HTTP status codes are issued by a server in response to a client's request made to the server. They provide information about the outcome of the request. Here's a table of some common HTTP status codes and their descriptions:

Status Code Description
100 Informational
200 Successful
300 Redirection
400 Client Error
500 Server Error

Streaming responses

Bruno supports Server-Sent Events (SSE) for REST requests that stream data with Accept: text/event-stream. Incoming chunks appear live in the response panel, and you can cancel an active stream at any time.