Admin / Create Stream
Implement POST /stream method according to the service API using Storage Client, TopicAdminService and DeploymentAdminService:
-
create the stream definition record using storage client -
create Kafka topic using TopcAdminService -
generate deployment definition for the stream using the appropriate template -
create new deployment using DeploymentAdminService -
update stream definition record to include the deployment id into the ExtensionProperties? -
handle all the exceptions and return the appropriate HTTP codes -
create tests for all possible return codes