diff --git a/API.md b/API.md index 2a81144..204bebc 100644 --- a/API.md +++ b/API.md @@ -15,3 +15,13 @@ example: `https://medad.fun/v1/ads/get` - `Tags`: Every endpoint starts with the version or tag. Tags divides the version of controller, useful for tests and migration (`v1`, `beta`, `test`, etc) - `Group`: Relevant endpoints have grouped. (`/auth`, `/widget`, `/user`, etc) +### Response: +REST responses follow this structure: +```jsonc +{ + "success": true, // boolean + "message": "some message", // string + "data": {}, // any (nullable) + "errors": [] // error (nullable) +} +```