xoom-helloworld
example is a pinned repository on our GitHub VLINGO organization. To use to it learn, first clone the repository and build the project. Open a console/command window so you can build the xoom-helloworld
artifact and start it by executing the built jar
file.~/.m2/settings.xml
. This is explained in more detail and with an example here.java
command executes the jar
on the default port 18080
. If you would like to use a different port, you must provide it on the command line. This command uses port 8080
.18080
."Hello, World!"
and similar messages.curl
with GET
methods on the following resources.curl
responds with 200 OK
and the content body entity "Hello, World!"
"Hello"
. The second example responds with 200 OK
and the content body entity "Hello, Me!"
io.vlingo.xoom.hello.infra.resource.HelloResource
.Greeting
messages. These greetings have the following data associated with them.id
: a unique identitymessage
: a text messagemessageChangedCount
: the number of times the message text has changed since first being defineddescription
: a text description of the messagedescriptionChangedCount
: the number of times the description text has changed since first being definedGreeting
. To do so you POST
a JSON
object to the /greetings
URI.Greeting
. The Location
of the new Greeting
resource is /greetings/{someId}
. Let's GET
that resource.PATCH
the Greeting
resource's message
.message
has changed to "Yo"
, and the messageChangedCount
is now 1
. Also notice that the description
and the descriptionChangedCount
remain unchanged.PATCH
the Greeting
resource's description
.description
has changed to "Says Yo"
, and the descriptionChangedCount
is now 1
.message
and the description
and the corresponding counts have all changed.Greeting
resource example there are various component sets involved. See the following source code.