Files
libopenapi/test_specs/yaml-anchor.yaml
Thomas Rooney 1d6048dd42 example
2023-07-18 14:36:15 -04:00

49 lines
1008 B
YAML

openapi: 3.0.2
info:
title: Example
version: 0.0.1
components:
schemas:
Example:
type: object
required:
- id
properties:
id:
type: string
title: Name
pattern: ^[a-zA-Z0-9_\-]+$
description: Name of the Example.
description:
type: string
title: Description
description: Brief description of this Example. Optional.
paths:
/system/examples/{id}:
get:
tags:
&a1
- Examples
parameters:
&id
- name: id
in: path
required: true
schema:
type: string
responses:
&a2
"200":
description: a list of Example objects
content:
&example
application/json:
schema:
$ref: '#/components/schemas/Example'
post:
tags: *a1
parameters: *id
responses: *a2
requestBody:
content: *example