Add mockapi source files and tests
Some checks failed
CI / test (push) Failing after 21s
CI / build (push) Has been skipped

This commit is contained in:
2026-03-22 21:59:29 +00:00
parent ed71d7516d
commit 56a68c0b1f

73
examples/petstore.yaml Normal file
View File

@@ -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