This folder contains the sources to the DSP-API documentation website published under http://docs-api.dasch.swiss
The src
folder contains the following documentation sources:
src/api-v1
: The DSP-API V1 (JSON) Request and Response Format documentation. Source can be found insalsah1/src/typescript_interfaces
src/api-v2
: The DSP-API V2 (JSON-LD) Request and Response Format documentation.src/api-admin
: The DSP-API Admin (JSON) Request and Response format Swagger-based documentation.
All the different documentations are build by invoking the following make commands from the project root directory:
make docs-build # build the documentation
make docs-serve # serve it locally
make docs-publish # publish it do Github pages
make docs-install-requirements: ## install requirements
This command will build all documentation and publish it to the gh-pages
branch.
-
You will need Graphviz. On macOS:
brew install graphviz
On Linux, use your distribution's package manager.
-
The DSP-API V1 / V2 Request and Response Format documentation is formally described using typescript interfaces. To create the documentation from these interfaces, we use
typedoc
.Install
typedoc
usingnpm
:npm install --global typedoc
If you do not have
npm
(node package manager), install it first. You will find more information aboutnpm
here: https://www.npmjs.com/.