Last active
November 23, 2021 01:11
-
-
Save shimmerLum/02805c7e85d88baf24f9effe8f0372c2 to your computer and use it in GitHub Desktop.
Simple JSON definition to be used the OpenApi generator input
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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "test.json", | |
"version": "1.0.0" | |
}, | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"paths": { | |
"/test/getint": { | |
"get": { | |
"summary": "Read an object containing an int64 value", | |
"operationId": "GetInt64Test", | |
"responses": { | |
"200": { | |
"description": "OK", | |
"schema": { | |
"$ref": "#/definitions/testInt64" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"definitions": { | |
"testInt64": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks good.