Server
Class responsible for loading the REST API and all REST API namespaces.
Description Description
Source Source
File: includes/rest-api/Server.php
Methods Methods
- get_path — Return the path to the package.
- get_rest_namespaces — Get API namespaces - new namespaces should be registered here.
- get_v1_controllers — List of controllers in the wc/v1 namespace.
- get_v2_controllers — List of controllers in the wc/v2 namespace.
- get_v3_controllers — List of controllers in the wc/v3 namespace.
- init — Hook into WordPress ready to init the REST API as needed.
- register_rest_routes — Register REST API routes.