2024-02-29 09:08:47 -08:00
2024-02-29 09:11:26 -08:00
2024-04-11 14:14:13 -07:00
2024-02-29 08:12:58 -08:00
2024-02-13 13:23:46 -08:00
2024-02-29 09:08:47 -08:00
2024-02-13 13:23:46 -08:00

ZeroTierOne API Spec

OpenAPI and JSON-schema for the ZeroTierOne service API.

This is the API that lets you leave and join networks on your local machine, or configure a self-hosted network controller.

The specs are generated from a typespec spec.

dev

npm install 
npm start

Open http://localhost:8080

test

This integration test requires zerotier-one to be running. It may change configuration of your node! It runs in github actions too.

AUTH_TOKEN=$(cat /path/to/authtoken.secret) npm test

If you have a pre-release version of zerotier-one try:

ENABLE_UNSTABLE=1 npm t

missing features

Features not implemented by typespec yet

publishing

How to create a github release.

Releases contain the openapi and json-schema files.

Try to use conventional commit messages if you want. They will appear in the changelog.

This is a multistep process now due to branch protection.

Locally, create version:

When main is in a state you'd like to create a new release for:

  • create a feature branch off main
  • npm version major|minor|patch This bumps the version and updates the changelog
  • commit && push
  • create PR
  • when the action finishes, you can check the output artifacts index.html
  • get merged to main

On Github, create release:

  • Go into the repo's Github Actions
  • Click "tag and release"
  • Click Run Workflow
  • Run it off main

The url to the latest release of the openapi spec is: https://github.com/zerotier/zerotier-one-api-spec/releases/latest/download/openapi.yaml

S
Description
No description provided
Readme
367 KiB
Languages
TypeSpec 60.4%
TypeScript 39.6%