Invokes the request given the allowed api implementations.
The request that has been made.
A promise that resolves with the given result if the status code is less than 400. Any status code above 400 will result in a rejected promise.
Sets the result of a given endpoint.
The endpoint to set.
The endpoint verb to respond to.
The result method. If this is falsy, then the endpoint is removed.
Represents a mock http service that can be useful for demos, testing, and pre-api implementations.