Page tree
Skip to end of metadata
Go to start of metadata

SubGit shared daemon process supports REST API requests by providing several REST API endpoints. This feature is available since SubGit version 3.3.4.

By default, when configured for the very first time, REST server accepts HTTP requests on port 8990.

Following configuration options are supported in the shared_daemon/config file:

[http]
# required for REST API to be enabled
port = 8990

# optional configuration options
host = 0.0.0.0
path = subgit

With the configuration above, REST API endpoints will be available at http://hostname:8990/subgit/rest/ENDPOINT_NAME. To apply configuration changes, restart shared daemon by running

$ subgit daemon start shared/daemon/path

To disable REST API, remove or comment out http.port option and run

$ subgit daemon start shared/daemon/path

to apply changes.

  • No labels