Skip to content

Instantly share code, notes, and snippets.

@jazbek
Created January 12, 2017 17:29
Show Gist options
  • Save jazbek/99074ce1a6f41f4c6ecb4a001d5534fa to your computer and use it in GitHub Desktop.
Save jazbek/99074ce1a6f41f4c6ecb4a001d5534fa to your computer and use it in GitHub Desktop.
Schema with custom namespace
{"name":"Movie Theater Website","description":"","url":"http:\/\/theatersite.local\/some-location","home":"http:\/\/theatersite.local\/some-location","namespaces":["nj\/v1","oembed\/1.0"],"authentication":[],"routes":{"\/":{"namespace":"","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/"}},"\/nj\/v1":{"namespace":"nj\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"nj\/v1"},"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1"}},"\/nj\/v1\/show":{"namespace":"nj\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}},"showdate":{"required":false,"description":"Limit response to shows with showtimes on a particular date.","type":"string"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/show"}},"\/nj\/v1\/show\/(?P<id>[\\d]+)":{"namespace":"nj\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected."}}}]},"\/nj\/v1\/showtime":{"namespace":"nj\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug","_datetime"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}},"meta_key":{"required":false,"enum":["_datetime"],"description":"Filter collection by meta key.","type":"string"},"meta_value":{"required":false,"description":"Filter collection by meta key.","type":"mixed"},"meta_compare":{"required":false,"default":"=","enum":["=","!=",">",">=","<","<=","LIKE","NOT LIKE","IN","NOT IN","BETWEEN","NOT BETWEEN","EXISTS","NOT EXISTS","REGEXP","NOT REGEXP","RLIKE"],"description":"Filter collection by meta key.","type":"string"},"meta_type":{"required":false,"default":"CHAR","enum":["BINARY","CHAR","DATE","DATETIME","NUMERIC","DECIMAL","SIGNED","UNSIGNED","TIME"],"description":"Filter collection by meta key.","type":"string"}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"_location":{"required":false,"description":"","type":"string"},"_datetime":{"required":false,"description":"","type":"string"},"_midnight":{"required":false,"description":"Should the midnight screening note be shown for this showtime?","type":"string"},"auditorium":{"required":false,"description":"","type":"string"},"movie_event_program":{"required":false,"description":"","type":"string"},"_length":{"required":false,"description":"","type":"string"},"_series":{"required":false,"description":"","type":"array","items":{"type":"string"}},"_ticket_type_group":{"required":false,"description":"","type":"number"},"ticket_types":{"required":false,"description":"","type":"string"},"_sold_out":{"required":false,"description":"Is this showtime sold out?","type":"string"},"_initial_qty":{"required":false,"description":"Initial number of tickets available for this showtime","type":"number"},"_sold_qty":{"required":false,"description":"Number of tickets that have been sold for this showtime","type":"number"},"_sold_qty_mid":{"required":false,"description":"Meta ID for sold quantity","type":"string"},"_reserved_qty":{"required":false,"description":"Number of tickets that have been reserved for this showtime","type":"number"},"_reserved_qty_mid":{"required":false,"description":"Meta ID for reserved quantity","type":"string"},"_first_run":{"required":false,"description":"Is this a first run showtime?","type":"string"},"_extra":{"required":false,"description":"Anything special happening? Describe it here. No need to include the date or time.","type":"string"},"_extra_shortened":{"required":false,"description":"Shortened version of the extra text that will show overlaid on the home page movies.","type":"string"},"_extra_abbreviated":{"required":false,"description":"Super short label for the showtime button and in parentheses next to titles. 8 chars max.","type":"string"},"_extra_published":{"required":false,"description":"Is this extra info ready to go live?","type":"string"},"showtime_to_auditorium":{"required":false,"description":"showtime_to_auditorium","type":"array","items":{"type":"integer"}},"showtime_to_show":{"required":false,"description":"showtime_to_show","type":"array","items":{"type":"integer"}},"showtime_to_ticket_type":{"required":false,"description":"showtime_to_ticket_type","type":"array","items":{"type":"integer"}}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/showtime"}},"\/nj\/v1\/showtime\/(?P<id>[\\d]+)":{"namespace":"nj\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"_location":{"required":false,"description":"","type":"string"},"_datetime":{"required":false,"description":"","type":"string"},"_midnight":{"required":false,"description":"Should the midnight screening note be shown for this showtime?","type":"string"},"auditorium":{"required":false,"description":"","type":"string"},"movie_event_program":{"required":false,"description":"","type":"string"},"_length":{"required":false,"description":"","type":"string"},"_series":{"required":false,"description":"","type":"array","items":{"type":"string"}},"_ticket_type_group":{"required":false,"description":"","type":"number"},"ticket_types":{"required":false,"description":"","type":"string"},"_sold_out":{"required":false,"description":"Is this showtime sold out?","type":"string"},"_initial_qty":{"required":false,"description":"Initial number of tickets available for this showtime","type":"number"},"_sold_qty":{"required":false,"description":"Number of tickets that have been sold for this showtime","type":"number"},"_sold_qty_mid":{"required":false,"description":"Meta ID for sold quantity","type":"string"},"_reserved_qty":{"required":false,"description":"Number of tickets that have been reserved for this showtime","type":"number"},"_reserved_qty_mid":{"required":false,"description":"Meta ID for reserved quantity","type":"string"},"_first_run":{"required":false,"description":"Is this a first run showtime?","type":"string"},"_extra":{"required":false,"description":"Anything special happening? Describe it here. No need to include the date or time.","type":"string"},"_extra_shortened":{"required":false,"description":"Shortened version of the extra text that will show overlaid on the home page movies.","type":"string"},"_extra_abbreviated":{"required":false,"description":"Super short label for the showtime button and in parentheses next to titles. 8 chars max.","type":"string"},"_extra_published":{"required":false,"description":"Is this extra info ready to go live?","type":"string"},"showtime_to_auditorium":{"required":false,"description":"showtime_to_auditorium","type":"array","items":{"type":"integer"}},"showtime_to_show":{"required":false,"description":"showtime_to_show","type":"array","items":{"type":"integer"}},"showtime_to_ticket_type":{"required":false,"description":"showtime_to_ticket_type","type":"array","items":{"type":"integer"}}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/nj\/v1\/showtime\/dates":{"namespace":"nj\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view"},"from":{"required":false,"default":1483084800,"description":"Limit response to dates after a given time string."},"to":{"required":false,"default":1488528000,"description":"Limit response to dates before a given time string."}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/showtime\/dates"}},"\/nj\/v1\/auditorium":{"namespace":"nj\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"_capacity":{"required":false,"description":"","type":"string"},"_warning_level":{"required":false,"description":"The sales timer will kick in when there are this many tickets left","type":"string"},"_hold_tickets":{"required":false,"description":"How many tickets to hold for in person","type":"string"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/auditorium"}},"\/nj\/v1\/auditorium\/(?P<id>[\\d]+)":{"namespace":"nj\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"_capacity":{"required":false,"description":"","type":"string"},"_warning_level":{"required":false,"description":"The sales timer will kick in when there are this many tickets left","type":"string"},"_hold_tickets":{"required":false,"description":"How many tickets to hold for in person","type":"string"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/nj\/v1\/series":{"namespace":"nj\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with a specific slug.","type":"string"}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/series"}},"\/nj\/v1\/series\/(?P<id>[\\d]+)":{"namespace":"nj\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/nj\/v1\/ticket_type":{"namespace":"nj\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}},"ticket_type_group":{"required":false,"default":[],"description":"Limit result set to all items that have the specified term assigned in the ticket_type_group taxonomy.","type":"array","items":{"type":"integer"}},"ticket_type_group_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those that have the specified term assigned in the ticket_type_group taxonomy.","type":"array","items":{"type":"integer"}}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"ticket_type_group":{"required":false,"description":"The terms assigned to the object in the ticket_type_group taxonomy.","type":"array","items":{"type":"integer"}},"_location":{"required":false,"description":"","type":"string"},"_price":{"required":false,"description":"","type":"string"},"_qty":{"required":false,"description":"Enter a number to limit the number of this ticket type that can be sold","type":"string"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/ticket_type"}},"\/nj\/v1\/ticket_type\/(?P<id>[\\d]+)":{"namespace":"nj\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"ticket_type_group":{"required":false,"description":"The terms assigned to the object in the ticket_type_group taxonomy.","type":"array","items":{"type":"integer"}},"_location":{"required":false,"description":"","type":"string"},"_price":{"required":false,"description":"","type":"string"},"_qty":{"required":false,"description":"Enter a number to limit the number of this ticket type that can be sold","type":"string"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/nj\/v1\/ticket_type_group":{"namespace":"nj\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"parent":{"required":false,"description":"Limit result set to terms assigned to a specific parent.","type":"integer"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with a specific slug.","type":"string"}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/ticket_type_group"}},"\/nj\/v1\/ticket_type_group\/(?P<id>[\\d]+)":{"namespace":"nj\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/nj\/v1\/theater_settings":{"namespace":"nj\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/nj\/v1\/theater_settings"}},"\/oembed\/1.0":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"oembed\/1.0"},"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/oembed\/1.0"}},"\/oembed\/1.0\/embed":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"required":true},"format":{"required":false,"default":"json"},"maxwidth":{"required":false,"default":600}}}],"_links":{"self":"http:\/\/theatersite.local\/some-location\/wp-json\/oembed\/1.0\/embed"}}},"_links":{"help":[{"href":"http:\/\/v2.wp-api.org\/"}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment