By default, the link relation name used for another endpoint is the endpoint method name. The @Endpoint annotation contains the linkRelation attribute. If this attribute is set on any endpoint, the link is automatically generated for the endpoint and added to the response model. For example, to generate a link automatically for SubmitOrder you could configure the following:

@Endpoint (linkRelation="SubmitOrder")

As such, the JSON presentation would be:

{
  "id" : "user1234",
  "name" : "John Doe"
}

Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices