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