Update API
+10
@@ -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)
|
- `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)
|
- `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)
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user