Tribe__Tickets__REST__V1__Endpoints__Single_Ticket::get_documentation()
{@inheritdoc}
Source
File: src/Tribe/REST/V1/Endpoints/Single_Ticket.php
public function get_documentation() {
$GET_defaults = array( 'in' => 'query', 'default' => '', 'type' => 'string' );
return array(
'get' => array(
'summary' => __( 'Returns a single ticket data', 'event-tickets' ),
'parameters' => $this->swaggerize_args( $this->READ_args(), $GET_defaults ),
'responses' => array(
'200' => array(
'description' => __( 'Returns the data of the ticket with the specified post ID', 'ticket-tickets' ),
'content' => array(
'application/json' => array(
'schema' => array(
'$ref' => '#/components/schemas/Ticket',
),
),
),
),
'400' => array(
'description' => __( 'The ticket post ID is invalid.', 'ticket-tickets' ),
'content' => array(
'application/json' => array(
'schema' => array(
'type' => 'object',
),
),
),
),
'401' => array(
'description' => __( 'The ticket with the specified ID is not accessible.', 'ticket-tickets' ),
'content' => array(
'application/json' => array(
'schema' => array(
'type' => 'object',
),
),
),
),
'404' => array(
'description' => __( 'A ticket with the specified ID does not exist.', 'ticket-tickets' ),
'content' => array(
'application/json' => array(
'schema' => array(
'type' => 'object',
),
),
),
),
),
),
);
}