mirror of
https://github.com/LukeHagar/aperture.git
synced 2025-12-06 04:19:09 +00:00
30 lines
614 B
YAML
30 lines
614 B
YAML
openapi: 3.2.0
|
|
info:
|
|
title: Pet Store API
|
|
version: 1.0.0
|
|
paths:
|
|
/pets:
|
|
get:
|
|
summary: List all pets
|
|
operationId: listPets
|
|
responses:
|
|
'200':
|
|
description: A paged array of pets
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/pet' # Should be 'Pet' (PascalCase)
|
|
components:
|
|
schemas:
|
|
pet: # Should be 'Pet' (PascalCase)
|
|
type: object
|
|
required:
|
|
- id
|
|
- name
|
|
properties:
|
|
id:
|
|
type: integer
|
|
format: int64
|
|
name:
|
|
type: string
|