Skip to content

Instantly share code, notes, and snippets.

@benjaminsnorris
Last active September 23, 2016 15:28
Show Gist options
  • Save benjaminsnorris/0ba742ca961b0879efc8 to your computer and use it in GitHub Desktop.
Save benjaminsnorris/0ba742ca961b0879efc8 to your computer and use it in GitHub Desktop.
JSON Schema for Event API
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Event Response",
"type": "object",
"properties": {
"id": {
"description": "Unique identifier for an event",
"type": "integer"
},
"title": {
"description": "A user-defined title for the event",
"type": "string"
},
"description": {
"description": "Long-form text defined by the user to describe the event",
"type": "string"
},
"location": {
"description": "Long-form text location for the event",
"type": "string"
},
"startDate": {
"description": "Start date and time in RFC 3339 format",
"format": "date-time",
"type": "string"
},
"endDate": {
"description": "End date and time in RFC 3339 format",
"format": "date-time",
"type": "string"
},
"groupId": {
"description": "Unique identifier for group invited to event",
"type": "integer"
}
},
"required": ["id", "title", "description", "location", "startDate", "groupId"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment