Created
May 8, 2016 14:51
-
-
Save EnoF/da459a8672acfa9a54ea53ab0548a6c9 to your computer and use it in GitHub Desktop.
Example rest-io Resource description
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
--- | |
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