Synapse REST API. Please refer to FAQs before using the API or opening a discord ticket
npm i
npm start
docker build . -t syn-api
docker run -d -p 8080:8080 syn-api
- Documentation is hosted at the
/apidoc
endpoint for all hosted API instances. - Generating documentation locally:
npm run gendoc
- Note: The
gendoc
script first temporarily sets thetype
attribute forpackage.json
tocommonjs
as apidoc.js is incompatible with ES6 syntax. It then generates documentation without the template (to generate themain.bundle.js
file, which is not generated with when using the template flag), then finally uses the template to generate stylized documentation inside ofdocs/apidoc
and reverts thetype
attribute.
- Note: The