Transforming REST models into IBM Worklight adaptors
IBM® Worklight adapters are the server-side code
of applications that are deployed on the IBM Worklight
mobile application platform, and mediate between the mobile devices
such as smartphones and tablets and the back-end services such as IBM WebSphere® Application Server. You can generate IBM Worklight adapters and mobile
clients stubs that use the procedures that are provided by the adapters
in an IBM Worklight project from a Representational State Transfer
(REST) model or a Java™ API for
RESTful Web Services (JAX-RS) model by running the UML-to-Worklight
transformation.
Before you begin
You must have the REST or JAX-RS modeling capability enabled.
Procedure
What to do next
Note: IBM Worklight supports only following content
types:
{
"errors": [
"Runtime: java.lang.IllegalArgumentException: Http content type '*\/*' not supported. Supported types are: [json, css, csv, javascript, plain, xml, html]"
],
"info": [
],
"isSuccessful": false,
"warnings": [
]
}
You must validate the content types during the UML-to-Worklight
transformation.