class Public_RestRegisters read-only routes under clanbite/v1 that do not require a logged-in user.
class final
- Full name
Kernowdev\Clanbite\Public_Rest
Methods
build_discovery_payload()Build the Clanbite discovery payload (also used by the Abilities API).get_public_team_data_by_slug_or_url()Resolve public team metadata by slug or absolute team profile URL.handle_discovery()Discovery payload so remote sites can detect Clanbite and a compatible API version.handle_public_team()Return basic public data for a published team by slug or by parsing a profile URL.register_routes()Register routes on rest_api_init.
Defined in inc/class-public-rest.php