API specification editor launcher for MacOS.
An editor's detached Docker container is started, if not already running. A Chrome browser window / tab is open with the editor's main page. Upon stopping, the container is deleted, along with any associated volume(s).
Prerequisites:
Usage:
api.sh [-h] [-p <port>] <type>
Options:
-
-h
Show usage description.
-
-p <port>
Local port to attach the editor to, default is
9001
. -
type
Specification / editor type:
Examples:
api.sh -p 9090 open