Created
January 28, 2019 09:21
-
-
Save Findus79/83044968492b225968c2c4bb749d2e21 to your computer and use it in GitHub Desktop.
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": "cpp-restsdk generator test", | |
"description": "generate unusable cpp code", | |
"version": "1.0.0" | |
}, | |
"host": "", | |
"basePath": "/CPPCodeGen", | |
"schemes": [ | |
"https", | |
"http" | |
], | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"paths": { | |
"/SymbolAsBinary": { | |
"post": { | |
"tags": [ | |
"none" | |
], | |
"description": "provoke cpp error", | |
"operationId": "GetClassWithBinaryData", | |
"parameters": [ | |
{ | |
"name": "GenericParamA", | |
"in": "body", | |
"schema": { | |
"$ref": "#/definitions/GenericParams" | |
} | |
} | |
], | |
"responses": { | |
"201": { | |
"description": "The method call completed successfully", | |
"schema": { | |
"$ref": "#/definitions/ClassWithBinaryData" | |
} | |
}, | |
"400": { | |
"description": "Bad Request" | |
}, | |
"500": { | |
"description": "Internal Server Error" | |
} | |
} | |
} | |
} | |
}, | |
"definitions": { | |
"ClassWithBinaryData": { | |
"type": "object", | |
"description": "", | |
"properties": { | |
"ErrorMessage": { | |
"description": "some generic error message", | |
"type": "string" | |
}, | |
"BinaryDataAsString": { | |
"type": "string", | |
"format": "binary" | |
}, | |
"IntValueA": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"IntValueB": { | |
"type": "integer", | |
"format": "int32" | |
} | |
} | |
}, | |
"GenericParams": { | |
"type": "object", | |
"properties": { | |
"StringParam": { | |
"description": "simple string", | |
"type": "string" | |
}, | |
"IntParam": { | |
"description": "simple integer", | |
"type": "integer", | |
"format": "int32" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment