Tribe__Tickets__REST__V1__Service_Provider::register_endpoints()

Registers the REST API endpoints for Event Tickets.

Contents


Source

File: src/Tribe/REST/V1/Service_Provider.php

	public function register_endpoints() {
		$this->namespace = tribe( 'tickets.rest-v1.main' )->get_events_route_namespace();

		$doc_endpoint = $this->register_documentation_endpoint();
		$this->register_single_ticket_endpoint();
		$this->register_ticket_archive_endpoint();
		$this->register_single_attendee_endpoint();
		$this->register_attendee_archive_endpoint();

		// @todo add the endpoints as documentation providers here
		$doc_endpoint->register_documentation_provider( '/doc', $doc_endpoint );

	}

Top ↑

Changelog

Changelog
Version Description
4.7.5 Introduced.