Skip to content
VibecatDocumentation

Vibemosphere Web Application Plugin

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/…

Open the configuration

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.

Vibemosphere Web Application Plugin: the plug-in page in its overlay dialog

Step by step

  1. Create a user with the role 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.

The page in detail

Vibemosphere Web Application Plugin: the whole page (playground instance)

The page has these sections: Web applications, Upload a WAR.

Actions

  • Upload

Notes from the page

  • REST API for the life cycle of the web applications (role manager ): upload a WAR, start, stop, redeploy, remove. This page tries the same calls. Documentation
  • replace the WAR of applications that run it Upload

Reference

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"

All plug-ins

WIKI · PRIVACY

Your cookie preferences

DokuWiki uses necessary cookies for sessions, sign-in and your preferences. Your choice is stored for one year in a site cookie. Optional external content is loaded only when you allow it. No analytics service is added by this plugin.

Only applies to content explicitly deferred by this plugin. Third-party providers may receive your IP address and set cookies when that content loads.

vibecat/plugins/webapps.txt · Last modified: by *.*.*.*