Skip to content

Commit

Permalink
docs(acquisition): Improve details of POST journeys on 422 (#2728)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugobarthelemy authored and jonathanfallon committed Dec 12, 2024
1 parent 222cbc4 commit 1cabad9
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions api/specs/api-v3.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,38 @@ paths:
Le trajet est déjà enregistré.
'422':
description: |
Le trajet est en erreur.
Le payload envoyé est incorrect.
Le payload envoyé ne respecte pas le contrat d'interface / les Conditions Générales d'Utilisation.
Le trajet n'a pas été enregistré par le Registre de Preuve de Covoiturage.
content:
application/json:
example:
id: 1
jsonrpc: '2.0'
error:
data:
terms_violation_labels:
- expired
code: -32422
message: Unprocessable Request
schema:
type: object
properties:
id:
type: integer
example: 1
jsonrpc:
type: string
enum:
- '2.0'
error:
type: object
properties:
data:
type: object
properties:
terms_violation_labels:
$ref: '#/components/schemas/terms_violation_label'
required:
- terms_violation_labels
code:
type: integer
enum:
- -32422
message:
type: string
enum:
- Unprocessable Request
tags:
- Trajets courte distance
get:
Expand Down

0 comments on commit 1cabad9

Please sign in to comment.