Skip to content

Instantly share code, notes, and snippets.

@netmilk
Created Apr 7, 2017
Embed
What would you like to do?
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