February 2018
Intermediate to advanced
552 pages
13h 46m
English
In this section, we will perform the following steps to develop our Reactive System's Producer API (wf-producer-api) microservice:
case class WFMessage(city: String, temperature: String)
object WFMessage {
implicit val format: Format[WFMessage] = Json.format[WFMessage]
}
trait WFService extends Service{
def wfTemperature(city: String, temperature:String): ServiceCall[WFMessage, Done] override final def descriptor: Descriptor = { import Service._ named("wfproducer").withCalls( pathCall("/wf/:city/:temperature", wfTemperature _) ).withTopics( topic(WFService.TOPIC_NAME, wfTopic) ).withAutoAcl(true) } def wfTopic(): ...Read now
Unlock full access