Files
mockapi/examples/petstore.yaml
7000pctAUTO 56a68c0b1f
Some checks failed
CI / test (push) Failing after 21s
CI / build (push) Has been skipped
Add mockapi source files and tests
2026-03-22 21:59:29 +00:00

74 lines
1.5 KiB
YAML

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