#
Poser
#
registerService
Register a new service:
poser.registerService(serviceKey, serviceMock);
#
Arguments
#
extendService
Extend an existing service:
poser.extendService(serviceKey, serviceMock);
This method must be called after a registerService
for the same serviceKey
.
#
Arguments
#
start
Start the server:
poser.start(port);
This method must be called last, after registering/extending services.
#
Arguments
#
reset
This method will reset all services (clear store).
poser.reset(serviceKey);
#
Arguments
Poser can also be reset by calling http://localhost:1000/_reset
.