From e5683e090d4806da6378ea26bf4787e64579990d Mon Sep 17 00:00:00 2001 From: AmirGhost11 Date: Mon, 18 May 2026 15:27:54 +0000 Subject: [PATCH] Update API --- API.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) +} +```