Update flight service

This commit is contained in:
2026-02-23 12:13:32 +03:00
parent 8478716159
commit d09f6d8d8c

View File

@@ -45,7 +45,10 @@ GET /api/users/{id} HTTP/1.1
Accept: application/json
```
```json title="Response Body Example"
<details>
<summary>Response Example</summary>
```json title="Body"
{
"id": 1,
"first_name": "Ivan",
@@ -53,6 +56,7 @@ Accept: application/json
"age": 25
}
```
</details>
### Получение информации о самолете
@@ -63,7 +67,11 @@ POST /api/airplane/{id} HTTP/1.1
Accept: application/json
```
```json title="Response Body Example"
<details>
<summary>Response Example</summary>
```json title="Body"
{
"id": 1,
"name": "Airplane #1",
@@ -71,6 +79,7 @@ Accept: application/json
"max_cargo_weight": 7350
}
```
</details>
### Список всех самолетов
@@ -90,7 +99,10 @@ Accept: application/json
</details>
```json title="Response Body Example"
<details>
<summary>Response Example</summary>
```json title="Body"
[
{
"id": 1,
@@ -101,6 +113,7 @@ Accept: application/json
...
]
```
</details>
### Получение информации об аэропорте