Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. {
  2. "swagger": "2.0",
  3. "paths": {
  4. "/v1/account-info": {
  5. "get": {
  6. "operationId": "getAccountInfo",
  7. "parameters": [
  8. {
  9. "name": "account_id",
  10. "in": "query",
  11. "required": true,
  12. "type": "string"
  13. }
  14. ],
  15. "responses": {
  16. "200": {
  17. "description": "successful operation",
  18. "schema": {
  19. "$ref": "#/definitions/AccountInfo"
  20. }
  21. }
  22. }
  23. }
  24. }
  25. },
  26. "definitions": {
  27. "AccountType": {
  28. "type": "string",
  29. "enum": [
  30. "PERSONAL",
  31. "IRA",
  32. "COLLEGE"
  33. ]
  34. },
  35. "AccountInfo": {
  36. "type": "object",
  37. "properties": {
  38. "accountType": {
  39. "$ref": "#/definitions/AccountType"
  40. }
  41. }
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement