Skip to content

Instantly share code, notes, and snippets.

@netmilk
Created April 7, 2017 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netmilk/2d2336ae783e55dc474c38bfbe5a3116 to your computer and use it in GitHub Desktop.
Save netmilk/2d2336ae783e55dc474c38bfbe5a3116 to your computer and use it in GitHub Desktop.
Complex MSON enums usage in API blueprint
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