Last active
October 25, 2022 15:29
-
-
Save ma-pe/511bc26d11da274916fd4b8fe1aff1aa to your computer and use it in GitHub Desktop.
Basic Open Api Spec related to Bug-Ticket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Example Open Api Spec", | |
"description": "Example Open API Spec with Deprecation on schema property level", | |
"version": "1.0.32" | |
}, | |
"paths": { | |
"/v1/products/{productId}": { | |
"get": { | |
"description": "gets a product", | |
"parameters": [ | |
{ | |
"name": "productId", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "SUCCESS", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/Product" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"Product": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"title": { | |
"deprecated": true, | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment