Created
April 7, 2017 13:56
-
-
Save netmilk/2d2336ae783e55dc474c38bfbe5a3116 to your computer and use it in GitHub Desktop.
Complex MSON enums usage in API blueprint
This file contains hidden or 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
FORMAT: 1A | |
# API with enums | |
# Resource [/resourc] | |
## Action [POST] | |
+ Request (application/json) | |
+ Attributes | |
+ id (enum) | |
+ (object) | |
+ message: Hello world (string) | |
+ id: 1 (number) | |
+ (object) | |
+ size: 15 (number) | |
+ color (enum) | |
+ black (string) | |
+ white (string) | |
+ (Animal) | |
+ Response 200 (application/json) | |
# Data structures | |
# Animal (object) | |
+ type: cat (string) | |
+ age: 10 | |
+ name: Hubert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment