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