Its easiest if Netbox is be running locally in development mode using the instructions here. In the Netbox section follow Option B: Clone the Git Repository and clone netbox into [netbox root].
Ensure the plugin is active in Netbox configuration.py
../netbox/netbox/configuration.py
Activate the netbox-zero plugin by adding it to list of active plugins.
PLUGINS = ['netbox_zero']
Restart the Netbox server process.
mkdir [netbox-zero root]
cd [netbox-zero root]
git clone -b master https://github.com/sapcc/netbox-zero.git
From the local repository directory activate the core Netbox virtual environment) venv.
cd [netbox-zero root]/netbox-zero
netbox-zero > source [netbox root]/netbox/venv/bin/activate
netbox-zero > python3 setup.py develop
After install restart Netbox.
Netbox will also intermittently restart on changes, however
note that all changes arenot always detected. In general
changes to the E.g. It will generally restart when plugin
file changes are detected, but when multiple changes are
made or several files are added or removed this may not
happens.
You can check the plugin is activa and installaed by logging into Netbox. In the top level menu click on Plugins and in the drop down you should see Netbox Zero in the list. The API should now be accessible at http://localhost:8000/api/plugins/netbox-zero/ztp/. You should be able to test it be settings the required HTTP headers.