Created
January 29, 2025 15:43
-
-
Save vman/866f672c2204cfe6c2c73b9a4355713b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: Repair Service | |
description: A simple service to manage repairs | |
version: 1.0.0 | |
servers: | |
- url: ${{OPENAPI_SERVER_URL}}/api | |
description: The repair api server | |
paths: | |
/repairs: | |
get: | |
operationId: listRepairs | |
summary: List all repairs | |
description: Returns a list of repairs with their details and images | |
parameters: | |
- name: assignedTo | |
in: query | |
description: Filter repairs by who they're assigned to | |
schema: | |
type: string | |
required: false | |
responses: | |
'200': | |
description: A list of repairs | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
results: | |
type: array | |
items: | |
type: object | |
properties: | |
id: | |
type: string | |
description: The unique identifier of the repair | |
title: | |
type: string | |
description: The short summary of the repair | |
description: | |
type: string | |
description: The detailed description of the repair | |
assignedTo: | |
type: string | |
description: The user who is responsible for the repair | |
date: | |
type: string | |
format: date-time | |
description: The date and time when the repair is scheduled or completed | |
image: | |
type: string | |
format: uri | |
description: The URL of the image of the item to be repaired or the repair process |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment