Skip to content

Instantly share code, notes, and snippets.

@tao-qian
Created August 31, 2016 17:16
Show Gist options
  • Save tao-qian/0d11a63c5cb62d1d221285d15d15540f to your computer and use it in GitHub Desktop.
Save tao-qian/0d11a63c5cb62d1d221285d15d15540f to your computer and use it in GitHub Desktop.
{
"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