mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
bundle only the files that has content and add test for filtering root files in bundle according to the version.
52 lines
1.2 KiB
JSON
52 lines
1.2 KiB
JSON
{
|
|
"openapi": "3.1.0",
|
|
"info": {
|
|
"title": "Sample API",
|
|
"description": "Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.",
|
|
"version": "0.1.9"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "http://api.example.com/v1",
|
|
"description": "Optional server description, e.g. Main (production) server"
|
|
},
|
|
{
|
|
"url": "http://staging-api.example.com",
|
|
"description": "Optional server description, e.g. Internal staging server for testing"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/users/{userId}": {
|
|
"get": {
|
|
"summary": "Get a user by ID",
|
|
"responses": {
|
|
"200": {
|
|
"description": "A single user.",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/~1schemas~1user.yaml"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"/schemas/user.yaml": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"userName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |