Skip to content

Instantly share code, notes, and snippets.

@w-vi
Created June 26, 2018 09:08
Show Gist options
  • Save w-vi/4958dc066f8271beaa74f10a08457b70 to your computer and use it in GitHub Desktop.
Save w-vi/4958dc066f8271beaa74f10a08457b70 to your computer and use it in GitHub Desktop.
MSON Composition
FORMAT: 1A
# A
## A [GET /a]
+ Request (application/json)
+ Attributes(Filter)
+ Response 200
# Data Structures
# Filter (object)
+ name (string, required) - Name of the filter
+ query (QueryComposition, required) - Query object
# QueryComposition (object)
+ and (array[Query], optional) - match all queries
+ or (array[Query], optional) - match any of the queries
+ exact (Query, optional) - macth the one exact query
# Query (object)
+ query (string, required) - matching expression
+ field (string, required) - field to operate on
+ type (enum[string], required)
Type of query
+ extact
+ regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment