Tribe__Events__REST__V1__Endpoints__Single_Venue_Slug::READ_args()

Provides the content of the args array to register the endpoint support for GET requests.

Contents


Return

(array)


Top ↑

Source

File: src/Tribe/REST/V1/Endpoints/Single_Venue_Slug.php

	public function READ_args() {
		return array(
			'slug' => array(
				'in'                => 'path',
				'type'              => 'string',
				'description'       => __( 'the venue post name', 'the-events-calendar' ),
				'required'          => true,
				'validate_callback' => array( $this->validator, 'is_venue_slug' ),
			),
		);
	}