// // ============LICENSE_START======================================================= // Copyright (C) 2016-2018 Ericsson. All rights reserved. // ================================================================================ // This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE // Full license text at https://creativecommons.org/licenses/by/4.0/legalcode // // SPDX-License-Identifier: CC-BY-4.0 // ============LICENSE_END========================================================= // // @author Sven van der Meer (sven.van.der.meer@ericsson.com) // == The APEX REST Editor The standard way to use the APEX REST Editor is via an installation of the __war__ file on a webserver. However, the REST editor can also be started via command line. This will start a Grizzly webserver with the __war__ deployed. Access to the REST Editor is then via the provided URL On UNIX and Cygwin systems use: - `apexRESTEditor.sh` - simply starts the webserver with the REST editor - `apexApps.sh rest-editor` - simply starts the webserver with the REST editor On Windows systems use: - `apexRESTEditor.bat` - simply starts the webserver with the REST editor - `apexApps.bat rest-editor` - simply starts the webserver with the REST editor Summary of alternatives to start the APEX REST Editor: [width="100%",options="header",cols="5a,5a"] |==================== | Unix, Cygwin | Windows | [source%nowrap,sh] ---- # $APEX_HOME/bin/apexRESTEditor.sh.sh [args] # $APEX_HOME/bin/apexApps.sh rest-editor [args] ---- | [source%nowrap,bat] ---- > %APEX_HOME%\bin\apexRESTEditor.bat [args] > %APEX_HOME%\bin\apexApps.bat rest-editor [args] ---- |==================== The option `-h` provides a help screen with all command line arguments. [source%nowrap,sh] ---- usage: org.onap.policy.apex.client.editor.rest.ApexEditorMain [options...] -h,--help outputs the usage of this command -l,--listen
the IP address to listen on. Default value is localhost to restrict access to the local machine only. -p,--port