...
Code Block | ||
---|---|---|
| ||
onos-create-app uitab org.foo.app foo-app 1.0.0 |
... or you can even create a REST interface for your application, like this:
Code Block | ||||
---|---|---|---|---|
| ||||
onos-create-app rest org.foo.app foo-app 1.0.0 |
Now, as before, we need to build and install our application. Since we installed it once already, we will use the reinstall command to deploy it:
...
See the Web UI tutorials for more detailed information.
ONOS can automatically generate SwaggerUI documentation for the URIs exposed in your RESTful application. After activating the application, you can visit the SwaggerUI at http://localhost:8181/v1/docs/ . You need to select Sample app REST API to test the URIs of your application.
Happy coding
Finally your application is loaded and running withing ONOS. Also, the generation process has generated an entire project which can be loaded into your favourite JAVA editor.
...