Skip to content

Commit

Permalink
add /journeys endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ccyrille committed Apr 27, 2022
1 parent 0220aba commit 57be5ba
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion standard-covoiturage_openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,43 @@ paths:
500:
$ref: '#/components/responses/InternalServerError'

/journeys:
get:
tags:
- List
summary: Get journeys by their ids.
description: Route used to retrieve journeys using their identifiers.
operationId: getJourneys
parameters:
- in: query
name: ids[]
required: true
explode: true
schema:
type: array
items:
type: string
minLength: 1
maxLength: 255
responses:
200:
description: Ok. Request processed successfully.
content:
application/json:
schema:
title: Journey
oneOf:
- $ref: '#/components/schemas/DriverJourney'
- $ref: '#/components/schemas/PassengerJourney'
400:
$ref: '#/components/responses/BadRequest'
401:
$ref: '#/components/responses/Unauthorized'
429:
$ref: '#/components/responses/TooManyRequests'
500:
$ref: '#/components/responses/InternalServerError'

/status:
get:
tags:
Expand Down Expand Up @@ -480,7 +517,7 @@ components:
minLength: 1
maxLength: 255
description: Id of next Journey in the return direction.


DriverJourney:
type: object
Expand Down

0 comments on commit 57be5ba

Please sign in to comment.