Skip to content

Instantly share code, notes, and snippets.

@EnoF
Created May 8, 2016 14:51
Show Gist options
  • Save EnoF/da459a8672acfa9a54ea53ab0548a6c9 to your computer and use it in GitHub Desktop.
Save EnoF/da459a8672acfa9a54ea53ab0548a6c9 to your computer and use it in GitHub Desktop.
Example rest-io Resource description
---
Banana
type: object
properties:
id:
type: string
description: Mongoose ID
description:
type: string
description: Some text to describe this specific banana
length:
type: integer
format: int32
description: Length in cm
brand:
type: string
description: Mongoose ID of the brand this banana belongs to
# rest-io specific
resourceType: AuthorizedResource
description: |
Banana resource, to demonstrate how a resource could be described
via resource definitions compatible with swagger documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment