Skip to main content

Module response

Module response 

Source
Expand description

Standard response types and helpers for the REST API.

All successful responses are wrapped in the ApiResponse envelope with optional pagination metadata.

Structs§

ApiMeta
Pagination metadata.
ApiResponse
Standard response envelope for all successful API responses.

Functions§

ok
Helper to wrap data in a successful response without pagination.
ok_paged
Helper to wrap paginated data in a successful response.