public interface HelloService
extends com.lightbend.lagom.javadsl.api.Service
This describes everything that Lagom needs to know about how to serve and consume the HelloService.
| Modifier and Type | Method and Description |
|---|---|
default com.lightbend.lagom.javadsl.api.Descriptor |
descriptor() |
com.lightbend.lagom.javadsl.api.ServiceCall<akka.NotUsed,java.lang.String> |
hello(java.lang.String id)
Example:
curl http://localhost:9000/api/hello/a1
|
com.lightbend.lagom.javadsl.api.ServiceCall<GreetingMessage,akka.Done> |
useGreeting(java.lang.String id)
Example:
curl -H "Content-Type: application/json" -X POST -d '{"message": "Hi Alice"}' http://localhost:9000/api/hello/a1
|
call, call, call, named, namedCall, namedCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, topic, topic, topiccom.lightbend.lagom.javadsl.api.ServiceCall<akka.NotUsed,java.lang.String> hello(java.lang.String id)
com.lightbend.lagom.javadsl.api.ServiceCall<GreetingMessage,akka.Done> useGreeting(java.lang.String id)
default com.lightbend.lagom.javadsl.api.Descriptor descriptor()
descriptor in interface com.lightbend.lagom.javadsl.api.Service