Refactor API response structure to use 'body' instead of 'data' for consistency across all endpoints. Update stub responses and documentation accordingly.
This commit is contained in:
@@ -50,18 +50,19 @@ stubs/api/
|
||||
### Успешный ответ
|
||||
```json
|
||||
{
|
||||
"error": null,
|
||||
"data": <данные>
|
||||
"success": true,
|
||||
"body": <данные>
|
||||
}
|
||||
```
|
||||
|
||||
### Ошибка
|
||||
```json
|
||||
{
|
||||
"success": false,
|
||||
"body": null,
|
||||
"error": {
|
||||
"message": "Описание ошибки"
|
||||
},
|
||||
"data": null
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user