Created
April 28, 2015 20:13
-
-
Save cadecairos/56f3976d6183242c9826 to your computer and use it in GitHub Desktop.
JSON Schema for api.webmaker.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"id": "https://api.webmaker.org/", | |
"title": "Project Schema", | |
"type": "object", | |
"properties": { | |
"project": { | |
"id": "https://api.webmaker.org/project", | |
"type": "object", | |
"properties": { | |
"id": { | |
"id": "https://api.webmaker.org/project/id", | |
"type:": "integer" | |
}, | |
"user_id": { | |
"id": "https://api.webmaker.org/project/user_id", | |
"type": "integer" | |
}, | |
"version": { | |
"id": "https://api.webmaker.org/project/version", | |
"type": "string" | |
}, | |
"title": { | |
"id": "https://api.webmaker.org/project/title", | |
"type": "string" | |
}, | |
"featured": { | |
"id": "https://api.webmaker.org/project/featured", | |
"type": "boolean" | |
}, | |
"created_at": { | |
"id": "https://api.webmaker.org/project/created_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"updated_at": { | |
"id": "https://api.webmaker.org/project/updated_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"deleted_at": { | |
"id": "https://api.webmaker.org/project/deleted_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"thumbnail_small": { | |
"id": "https://api.webmaker.org/project/thumbnail_small", | |
"type": "string", | |
"format": "uri" | |
}, | |
"thumbnail_medium": { | |
"id": "https://api.webmaker.org/project/thumbnail_medium", | |
"type": "string", | |
"format": "uri" | |
}, | |
"thumbnail_large": { | |
"id": "https://api.webmaker.org/project/thumbnail_large", | |
"type": "string", | |
"format": "uri" | |
} | |
}, | |
"required": [ | |
"id", | |
"version", | |
"title", | |
"featured", | |
"created_at", | |
"updated_at" | |
] | |
}, | |
"page": { | |
"id": "https://api.webmaker.org/page", | |
"type": "object", | |
"properties": { | |
"id": { | |
"id": "https://api.webmaker.org/page/id", | |
"type:": "integer" | |
}, | |
"project_id": { | |
"id": "https://api.webmaker.org/page/project_id", | |
"type": "integer" | |
}, | |
"x": { | |
"id": "https://api.webmaker.org/page/x", | |
"type": "integer" | |
}, | |
"y": { | |
"id": "https://api.webmaker.org/page/y", | |
"type": "integer" | |
}, | |
"created_at": { | |
"id": "https://api.webmaker.org/page/created_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"updated_at": { | |
"id": "https://api.webmaker.org/page/updated_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"deleted_at": { | |
"id": "https://api.webmaker.org/page/deleted_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"styles": { | |
"id": "https://api.webmaker.org/page/styles", | |
"type": "object" | |
} | |
}, | |
"required": [ | |
"id", | |
"x", | |
"y", | |
"created_at", | |
"updated_at", | |
"styles" | |
] | |
}, | |
"element": { | |
"id": "https://api.webmaker.org/element", | |
"type": "object", | |
"properties": { | |
"id": { | |
"id": "https://api.webmaker.org/element/id", | |
"type:": "integer" | |
}, | |
"page_id": { | |
"id": "https://api.webmaker.org/element/page_id", | |
"type": "integer" | |
}, | |
"created_at": { | |
"id": "https://api.webmaker.org/element/created_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"updated_at": { | |
"id": "https://api.webmaker.org/element/updated_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"deleted_at": { | |
"id": "https://api.webmaker.org/element/deleted_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"attributes": { | |
"id": "https://api.webmaker.org/element/attributes", | |
"type": "object" | |
}, | |
"styles": { | |
"id": "https://api.webmaker.org/element/styles", | |
"type": "object" | |
} | |
}, | |
"required": [ | |
"id", | |
"page_id", | |
"created_at", | |
"updated_at", | |
"properties", | |
"styles" | |
] | |
}, | |
"user": { | |
"id": "https://api.webmaker.org/user", | |
"type": "object", | |
"properties": { | |
"id": { | |
"id": "https://api.webmaker.org/user/id", | |
"type:": "integer" | |
}, | |
"username": { | |
"id": "https://api.webmaker.org/user/username", | |
"type": "string" | |
}, | |
"created_at": { | |
"id": "https://api.webmaker.org/user/created_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"updated_at": { | |
"id": "https://api.webmaker.org/user/updated_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"deleted_at": { | |
"id": "https://api.webmaker.org/user/deleted_at", | |
"type": "string", | |
"format": "date-time" | |
}, | |
"language": { | |
"id": "https://api.webmaker.org/user/language", | |
"type": "string" | |
}, | |
"country": { | |
"id": "https://api.webmaker.org/user/country", | |
"type": "string" | |
}, | |
"moderator": { | |
"id": "https://api.webmaker.org/user/moderator", | |
"type": "boolean" | |
}, | |
"staff": { | |
"id": "https://api.webmaker.org/user/staff", | |
"type": "boolean" | |
} | |
}, | |
"required": [ | |
"id", | |
"username", | |
"created_at", | |
"updated_at", | |
"language", | |
"country", | |
"moderator", | |
"staff" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment