Skip to content

Instantly share code, notes, and snippets.

@ernesen
Last active July 27, 2019 00:10
Show Gist options
  • Save ernesen/057b8eaea1235f176245e5091776d8f4 to your computer and use it in GitHub Desktop.
Save ernesen/057b8eaea1235f176245e5091776d8f4 to your computer and use it in GitHub Desktop.
components: # components definition
schemas:
Account: #Account Object
type: object
properties: #Object properties
uuid:
type: string
description: UUID #type description
type:
type: string #Data type
description: type #Data type description
currency: #Firstname attribute
type: string
description: currency #type description
balance:
type: integer
format: int64
number:
type: integer
format: int64
xml:
name: account #xml root element when returning xml
User: #User Object
type: object
properties: #Object properties
uuid: #Id attribute
type: string #Data type
description: type #Data type description
name: #Firstname attribute
type: string
description: UUID #type description
email: #Firstname attribute
type: string #Data type
phone: #Lastname attribute
type: string #Data type
description: type #Data type description
gender: #Lastname attribute
type: string #Data type
dob: #Firstname attribute
type: string #Data type
kid: #Lastname attribute
type: string #Data type
description: type #Data type description
password: #Lastname attribute
type: string
xml:
name: user #xml root element when returning xml
Bill: #Bill Object
type: object
properties: #Object properties
uuid: #Id attribute
type: string #Data type
description: type #Data type description
category: #Firstname attribute
type: string
description: UUID #type description
entity: #Lastname attribute
type: string #Data type
description: type #Data type description
account_no: #Firstname attribute
type: string #Data type
description: account_no #Data type description
amount: #Firstname attribute
type: integer
format: int64
currency: #Lastname attribute
type: string #Data type
description: type #Data type description
date: #Lastname attribute
type: string #Data type
description: type #Data type description
xml:
name: bill #xml root element when returning xml
Transaction: #Transaction Object
type: object
properties: #Object properties
uuid: #Id attribute
type: string #Data type
description: type #Data type description
amount: #Firstname attribute
type: integer
format: int64
currency: #Lastname attribute
type: string #Data type
description: type #Data type description
description: #Firstname attribute
type: string #Data type
description: type #Data type description
date: #Lastname attribute
type: string #Data type
description: type #Data type description
category: #Lastname attribute
type: string #Data type
description: type #Data type description
xml:
name: transaction #xml root element when returning xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment