mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
1 line
910 B
YAML
1 line
910 B
YAML
"openapi: 3.0.0\ninfo:\n title: Sample API\n description: >-\n Optional multiline or single-line description in\n [CommonMark](http://commonmark.org/help/) or HTML.\n version: 0.1.9\nservers:\n - url: 'http://api.example.com/v1'\n description: 'Optional server description, e.g. Main (production) server'\n - url: 'http://staging-api.example.com'\n description: 'Optional server description, e.g. Internal staging server for testing'\npaths:\n '/users/{userId}':\n get:\n summary: Get a user by ID\n responses:\n '200':\n description: A single user.\n content:\n application/json:\n schema:\n $ref: '#/components/schemas/~1schemas~1user.yaml'\ncomponents:\n schemas:\n /schemas/user.yaml:\n type: object\n properties:\n id:\n type: integer\n userName:\n type: string\n" |