Concept Flow - Custom endpoint registration
Start WordPress Init
Hook into 'rest_api_init'
Call register_rest_route()
Define endpoint path & methods
Assign callback function
Endpoint ready to handle requests
Client sends request
Callback runs, returns response
Response sent back to client
WordPress hooks into initialization, registers a REST API endpoint with a path, methods, and callback, then handles requests by running the callback and returning the response.