Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
"swagger": "2.0",
"paths": {
"/v1/account": {
"get": {
"description": "Get account information by account id.",
"operationId": "getAccountInfo",
"parameters": [
{
"name": "account_id",
"in": "query",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/AccountInfo"
}
}
}
}
}
},
"definitions": {
"AccountType": {
"type": "string",
"enum": [
"PERSONAL",
"COLLEGE_SAVING"
]
},
"AccountInfo": {
"type": "object",
"properties": {
"accountType": {
"$ref": "#/definitions/AccountType"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment