added example openapi file

This commit is contained in:
Dhroov Gupta
2019-07-19 11:46:02 +05:30
parent d344eed31c
commit eb65d3f4fc

View File

@@ -0,0 +1,41 @@
{
"openapi": "3.0.2",
"info": {
"title": "Example",
"version": "2.0.0"
},
"servers": [
{
"url": "https://api.example.com"
}
],
"paths": {
"/primary-domain/works": {
"get": {
"operationId": "get_authorize",
"summary": "Should keep the same domain",
"responses": {
"200": {
"description": "A response"
}
}
}
},
"/secondary-domain/fails": {
"get": {
"operationId": "get_authorize",
"summary": "Should use the other domain",
"servers": [
{
"url": "https://other-api.example.com"
}
],
"responses": {
"200": {
"description": "A response"
}
}
}
}
}
}