Skip to content

Instantly share code, notes, and snippets.

@jamesdube
Created July 21, 2021 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesdube/37efc20047831f1a485b68c85c70142c to your computer and use it in GitHub Desktop.
Save jamesdube/37efc20047831f1a485b68c85c70142c to your computer and use it in GitHub Desktop.
{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:7013","description":"Generated server url"}],"paths":{"/api/v0/balances/msisdn/{msisdn}":{"get":{"tags":["balance-enquiry-controller"],"operationId":"enquire","parameters":[{"name":"msisdn","in":"path","required":true,"schema":{"type":"string"}},{"name":"productCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"unitType","in":"query","required":true,"schema":{"type":"string"}},{"name":"accountCode","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListEnquiryAccountBalance"}}}}}}}},"components":{"schemas":{"ApiResponseListEnquiryAccountBalance":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EnquiryAccountBalance"}},"success":{"type":"boolean"},"httpStatusCode":{"type":"integer","format":"int32"},"message":{"type":"string"},"responseCode":{"type":"string"},"errors":{"$ref":"#/components/schemas/ApiResponseListEnquiryAccountBalance"}}},"EnquiryAccountBalance":{"type":"object","properties":{"balance":{"type":"number","format":"double"},"accountName":{"type":"string"},"accountCode":{"type":"string"},"expiryDate":{"type":"string","format":"date"},"additionalInfo":{"type":"object","additionalProperties":{"type":"object"}}}}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment