An example Java Liberty Application using DB2 to store Phone numbers.
Once deployed, the list of endpoints can be found in the following documentation:
- WADL definition:
GET /wadl.xml
- Swagger 2.0 JSON definition:
GET /api/swagger.json
- Swagger 2.0 YAML definition:
GET /api/swagger.yaml
- RAML 0.8 definition:
GET /api.raml
- Api Blueprint 1A definition
GET /api.apib
You'll need a Bluemix account, and then deploy this application to Bluemix
- Make sure Node.js is installed (to get
npm
) - Make sure bower is installed (
npm install -g bower
) - run
npm install
in the root of project directory - Set up a DB2 datasource
- Modify persistence.xml and follow the comments to connect to the datasource
- Copy mysql-connector-java.jar on your local machine (i.e. C:/db2)
- Copy server.xml into the Liberty server instance. Make modification as indicated by the comments within the file.
- Publish the application to the Liberty server instance.
- Make sure gulp is installed (
npm install -g gulp
) - Run
gulp test