Skip to content

Instantly share code, notes, and snippets.

@netmilk
Created February 19, 2016 14:39
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/a065e42f5ed72086ac4e to your computer and use it in GitHub Desktop.
Save netmilk/a065e42f5ed72086ac4e to your computer and use it in GitHub Desktop.
Type Instance using MSON Inheritance and Fixed Type Attribute
# My API
## GET /message/{id}
+ Response 404 (application/json)
+ Attributes (Not Found)
## Data Structures
### Error (object)
- message (string)
- code (number)
### Not Found (Error)
- message: "Not found" (string, fixed)
- code: 404 (number, fixed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment