Created
January 22, 2016 16:16
-
-
Save sebastianhenneberg/64503d147614b5e307c1 to your computer and use it in GitHub Desktop.
Example API with RAML Step 4
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
# 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