REST API for the web applications: upload a WAR (replacing the WAR of the applications that run it), start, stop, redeploy, remove.
| Id | webapps |
|---|---|
| Role | manager - needed for the page and the REST API (administrators always may) |
| Page | Plugins > Open (overlay with an X at the top right) or /plugins/webapps/ |
| REST | /api/plugins/webapps/… and, for callers with the role, /plugins/webapps/… |
In the administration open Plugins, select the row of this plug-in and press Open. The page opens in an overlay dialog: close it with the X at the top right, with Esc or by clicking outside; Open in a new tab next to the title shows it full size.
manager (or an API key) and call POST /plugins/webapps/upload?name=ix.war with the WAR as body. The applications that run the same WAR are replaced and deployed again.REST API for the life cycle of the web applications of Vibecat, for build servers and scripts. The administration page Web applications offers the same; this plug-in makes it available through the plug-in valve (the ports of the web applications) and, with HTTP Basic, on the administration port, for users with the role manager (an administrator may call it too; removing a web application needs an administrator).
Base: /plugins/webapps (ports of the web applications) or /api/plugins/webapps (administration port).
| Call | Result |
|---|---|
GET /webapps | all web applications with their state |
GET /webapps/{id} | one web application (id or name) |
POST /webapps/{id}/start · /stop · /redeploy | start (enabled), stop (disabled), deploy again (reads the WAR anew); the new state is returned |
DELETE /webapps/{id} | removes the web application (administrator) |
GET /uploads | the WAR files in the upload folder |
POST /upload?name=ix.war[&replace=false][&contextPath=/ix][&app=id] | the WAR file as the request body. It is stored in the upload folder; the web applications that run the same application (ix.war, ix-1.2.war …) get the new WAR and are deployed again, unless replace=false. With contextPath a web application is created (or updated) for the file. |
curl -u build:secret -X POST --data-binary @ix.war "http://host:8090/api/plugins/webapps/upload?name=ix.war" curl -u build:secret -X POST "http://host:8090/api/plugins/webapps/webapps/ix-Invoice/redeploy"