openapi: 3.2.0 info: title: BusUp Routes API description: BusUp API version 2 contact: email: christian@busup.com license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html version: 2.0.0 servers: - url: http://api.busup.local/v2 tags: - name: Routes paths: /routes: get: tags: - Routes summary: Find all Routes description: Returns all Routes operationId: index parameters: - name: filter.*.attribute in: path description: 'Filter Attribute. Ex: id' required: true schema: type: array items: type: string - name: filter.*.operator in: path description: 'Filter Operator. Ex: =' required: true schema: type: array items: type: string - name: filter.*.value in: path description: 'Filter Value. Ex: 1' required: true schema: type: array items: type: string - name: filter.*.scope in: path description: 'Filter Scope. Ex: local' required: true schema: type: array items: type: string - name: filter.*.relation in: path description: 'Filter Relation. Ex: services' required: true schema: type: array items: type: string - name: included in: path description: Include model relationships required: true schema: type: string - name: per_page in: path description: Load N entries per page required: true schema: type: integer - name: page in: path description: Load page N required: true schema: type: integer responses: '200': description: Successful operation '401': description: Unauthenticated '404': description: 'Not found: Model, Method or Relationship' '500': description: The action could not be completed security: - api_key: [] /routes/{id}: get: tags: - Routes summary: Find a specific Route description: Returns a specific Route operationId: show parameters: - name: id in: path description: The ID of the Route required: true schema: type: integer - name: included in: path description: Include model relationships required: true schema: type: string responses: '200': description: Successful operation '401': description: Unauthenticated '404': description: 'Not found: Model or Relationship' '500': description: The action could not be completed security: - api_key: [] /routes/{id}/stops: get: tags: - Routes summary: Find all Route Stops description: Returns all Stops of a Route operationId: stops parameters: - name: id in: path description: The ID of the Route required: true schema: type: integer - name: filter.*.attribute in: path description: 'Filter Attribute. Ex: id' required: true schema: type: array items: type: string - name: filter.*.operator in: path description: 'Filter Operator. Ex: =' required: true schema: type: array items: type: string - name: filter.*.value in: path description: 'Filter Value. Ex: 1' required: true schema: type: array items: type: string - name: filter.*.scope in: path description: 'Filter Scope. Ex: local' required: true schema: type: array items: type: string - name: included in: path description: Include model relationships required: true schema: type: string - name: per_page in: path description: Load N entries per page required: true schema: type: integer - name: page in: path description: Load page N required: true schema: type: integer responses: '200': description: Successful operation '401': description: Unauthenticated '404': description: 'Not found: Model, Method or Relationship' '500': description: The action could not be completed security: - api_key: [] /routes/{id}/services: get: tags: - Routes summary: Find all Route Services description: Returns all Services of a Route operationId: services parameters: - name: id in: path description: The ID of the Route required: true schema: type: integer - name: filter.*.attribute in: path description: 'Filter Attribute. Ex: id' required: true schema: type: array items: type: string - name: filter.*.operator in: path description: 'Filter Operator. Ex: =' required: true schema: type: array items: type: string - name: filter.*.value in: path description: 'Filter Value. Ex: 1' required: true schema: type: array items: type: string - name: filter.*.scope in: path description: 'Filter Scope. Ex: local' required: true schema: type: array items: type: string - name: included in: path description: Include model relationships required: true schema: type: string - name: per_page in: path description: Load N entries per page required: true schema: type: integer - name: page in: path description: Load page N required: true schema: type: integer responses: '200': description: Successful operation '401': description: Unauthenticated '404': description: 'Not found: Model, Method or Relationship' '500': description: The action could not be completed security: - api_key: [] /routes/{id}/calendar: get: tags: - Routes summary: Get the Calendar day description: Returns all Calendar days of a Route operationId: calendar parameters: - name: id in: path description: The ID of the Route required: true schema: type: integer - name: from in: path description: To start from a specific date required: true schema: type: string - name: per_page in: path description: Load N entries per page required: true schema: type: integer - name: page in: path description: Load page N required: true schema: type: integer responses: '200': description: Successful operation '401': description: Unauthenticated '404': description: 'Not found: Model, Method or Relationship' '500': description: The action could not be completed security: - api_key: []