Created
August 31, 2016 17:16
-
-
Save tao-qian/0d11a63c5cb62d1d221285d15d15540f 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", | |
"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