Tribe__Tickets__REST__V1__Endpoints__Single_Ticket::READ_args()
{@inheritdoc}
Source
File: src/Tribe/REST/V1/Endpoints/Single_Ticket.php
public function READ_args() {
return array(
'id' => array(
'type' => 'integer',
'in' => 'path',
'description' => __( 'The ticket post ID', 'event-tickets' ),
'required' => true,
/**
* Here we check for a positive int, not a ticket ID to properly
* return 404 for missing post in place of 400.
*/
'validate_callback' => array( $this->validator, 'is_positive_int' ),
),
);
}