diff --git a/openapi.yaml b/openapi.yaml index c817c5f..aa313d4 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,5 +1,5 @@ openapi: 3.1.0 -inf2o: +info1: title: Train Travel API description: API for finding and booking train trips across Europe. version: 1.0.0 @@ -11,7 +11,7 @@ servers: - url: https://api.example.com/v1 paths: - - /stations: + /stations: get: summary: Get a list of train stations description: Returns a list of all train stations in the system. @@ -43,7 +43,7 @@ paths: '500': $ref: '#/components/responses/InternalServerError' - - /trips: + /trips: get: summary: Get available train trips description: Returns a list of available train trips between the specified origin and destination stations on the given date, and allows for filtering by bicycle and dog allowances. @@ -110,7 +110,7 @@ paths: '500': $ref: '#/components/responses/InternalServerError' - - /bookings: + /bookings: post: summary: Book a train trip operationId: create-booking