Skip to content

Instantly share code, notes, and snippets.

@yhaskell
Created September 28, 2015 18:00
Show Gist options
  • Save yhaskell/c493bf1364f6a3a7c611 to your computer and use it in GitHub Desktop.
Save yhaskell/c493bf1364f6a3a7c611 to your computer and use it in GitHub Desktop.
/classes:
/{className}:
type: { parseMember: { schema: installationGet } }
description: Collection of class instances
get:
description: |
Retreives objects. The response body is a JSON object containing all the user-provided fields,
plus the createdAt, updatedAt, and objectId fields.
body:
application/x-www-form-urlencoded:
formParameters:
include:
description: Fetch child objects pointed to by the key
example: include=game
responses:
200:
body:
application/json:
schema: |
{
"type" : "object" ,
"$schema" : "http://json-schema.org/draft-03/schema" ,
"required" : true ,
"properties" : {
"results" : {
"type" : "array" ,
"required" : true ,
"items" : {
"type" : "object" ,
"required" : false ,
"properties" : {
"createdAt" : {
"type" : "string" ,
"required" : true
} ,
"objectId" : {
"type" : "string" ,
"required" : true
} ,
"updatedAt" : {
"type" : "string" ,
"required" : true
}
} ,
"patternProperties" : {
"^[a-zA-Z0-9_]+$" : {
"type" : "any" ,
"required" : false
}
} ,
"additionalProperties" : false
}
}
} ,
"additionalProperties" : false
}
example: !include examples/classesQuery.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment