Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleh Duleba committed Aug 28, 2024
1 parent 66c5546 commit 972daef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
13 changes: 8 additions & 5 deletions tasks/train-a/admin/carriages.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,17 @@ Carriage is composed with parameters:
- code: `type18` (string) - Carriage unique identifier

- Response 401 (application/json)

- Attributes (object)
- error:
- message: `Access is not granted` (string) - Error message
- reason: `invalidAccessToken` (string) - Wrong token idintifier
- reason: `invalidAccessToken` (string) - Wrong token identifier

- Response 400 (application/json)
- Attributes: (object)
- error:
- message: `Carriage already exists` (string) - Error message
- reason: `invalidUniqueKey` (string) - Wrong token idintifier
- reason: `invalidUniqueKey` (string) - Unique error type

### Update carriage type

Expand All @@ -150,30 +151,32 @@ Carriage is composed with parameters:
- Attributes: (object)
- error:
- message: `Access is not granted` (string) - Error message
- reason: `invalidAccessToken` (string) - Wrong token idintifier
- reason: `invalidAccessToken` (string) - Wrong token identifier

- Response 400 (application/json)
- Attributes: (object)
- error:
- message: `Carriage not found` (string) - Error message
- reason: `recordNotFound` (string) - Wrong token idintifier
- reason: `recordNotFound` (string) - Unique error type

### Delete carriage type

> `(DELETE) /api/carriage/{code}`
- Request (application/json)

- Parameters: (object)
- code: `type18` (string) - Carriage unique identifier

- Response 200 (application/json)

- Attributes (object)

- Response 401 (application/json)
- Attributes (object)
- error:
- message: `Access is not granted` (string) - Error message
- reason: `invalidAccessToken` (string) - Wrong token idintifier
- reason: `invalidAccessToken` (string) - Wrong token identifier
- Response 400 (application/json)
- Attributes (object)
- error:
Expand Down
8 changes: 5 additions & 3 deletions tasks/train-a/admin/ride.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Travel time is indicated for each station as _arrival time_ (except for the firs
- Attributes (object)
- error:
- message: `Access is not granted` (string) - Error message
- reason: `invalidAccessToken` (string) - Wrong token idintifier
- reason: `invalidAccessToken` (string) - Wrong token identifier

- Response 400 (application/json)
- Attributes (object)
Expand Down Expand Up @@ -175,7 +175,7 @@ Travel time is indicated for each station as _arrival time_ (except for the firs
- Attributes (object)
- error:
- message: `Access is not granted` (string) - Error message
- reason: `invalidAccessToken` (string) - Wrong token idintifier
- reason: `invalidAccessToken` (string) - Wrong token identifier

- Response 400 (application/json)
- Attributes (object)
Expand All @@ -188,18 +188,20 @@ Travel time is indicated for each station as _arrival time_ (except for the firs
> `(DELETE) /api/route/{routeId}/ride/{rideId}`
- Request (application/json)

- Parameters:
- routeId: `17` (number, required) - Identifier of the route
- rideId: `215` (number, required) - Identifier of the ride

- Response 200 (application/json)

- Attributes (object)

- Response 401 (application/json)
- Attributes (object)
- error:
- message: `Access is not granted` (string) - Error message
- reason: `invalidAccessToken` (string) - Wrong token idintifier
- reason: `invalidAccessToken` (string) - Wrong token identifier
- Response 400 (application/json)
- Attributes (object)
- error:
Expand Down

0 comments on commit 972daef

Please sign in to comment.