Admin / Stop Stream
Implement the GET /stream/{id}/stop method of the streaming API in the controller using the DeploymentAdminService (to be created):
-
get stream definition record from the storage service using the stream id (input parameter) -
extract deployment id from ExtensionProperties -
call DeploymentAdminService::stopDeployment method passing deployment id -
handle exceptions and return the appropriate HTTP code -
create tests for each possible return code