diff --git a/examples/petstore.yaml b/examples/petstore.yaml new file mode 100644 index 0000000..8b3719a --- /dev/null +++ b/examples/petstore.yaml @@ -0,0 +1,73 @@ +openapi: 3.0.3 +info: + title: Petstore API + version: 1.0.0 +paths: + /users: + get: + operationId: listUsers + responses: + '200': + description: Success + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' + /products: + get: + operationId: listProducts + responses: + '200': + description: Success + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Product' + /orders: + get: + operationId: listOrders + responses: + '200': + description: Success + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Order' +components: + schemas: + User: + type: object + properties: + id: + type: integer + name: + type: string + email: + type: string + format: email + Product: + type: object + properties: + id: + type: integer + name: + type: string + price: + type: number + Order: + type: object + properties: + id: + type: integer + userId: + type: integer + productId: + type: integer + quantity: + type: integer