Skip to content

Instantly share code, notes, and snippets.

@sebastianhenneberg
Created January 22, 2016 16:16
Show Gist options
  • Save sebastianhenneberg/64503d147614b5e307c1 to your computer and use it in GitHub Desktop.
Save sebastianhenneberg/64503d147614b5e307c1 to your computer and use it in GitHub Desktop.
Example API with RAML Step 4
# document root
types:
Gender:
type: string
enum: [ male, female ]
User:
properties:
id: integer
name: string
gender?: Gender
example:
{
"id": 42,
"name": "John Doe",
"gender": "male"
}
Users: User[]
# endpoint definiton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment