Swagger_Documentation::register()

Register the actual endpoint on WP Rest API.

Contents


Source

File: src/Event_Automator/Zapier/REST/V1/Documentation/Swagger_Documentation.php

	public function register() {
		tribe_register_rest_route( $this->get_events_route_namespace(), '/doc', [
			'methods'  => \WP_REST_Server::READABLE,
			'callback' => [ $this, 'get' ],
		] );
		$this->register_documentation_provider( '/doc', $this );
	}

Top ↑

Changelog

Changelog
Version Description
1.0.0 Introduced.