Add an example of initializeApiEndpoint()