api-guidelines 0.1.3
Install from the command line:
Learn more about npm packages
$ npm install @otto-de/api-guidelines@0.1.3
Install via package.json:
"@otto-de/api-guidelines": "0.1.3"
About this version
This repository contains the source documentation of the OTTO API guidelines and acts as a module
for the OTTO API Portal. The API guidelines aim for establishing a uniform API standard, which serves as a set of rules for the creation of new APIs.
The API Manifesto helps to establish this standard and comprises values that we have agreed upon in advance.
URL: https://api.otto.de/portal/guidelines
This project requires at least Node.js version 16, or higher. We recommend using version 18. If you need write permissions to this repository, you can add your team via PR to this file: .github/gitty.yml#/configs/settings/default/teams.
- Create a
GITHUB_TOKEN
in your GitHub developer settings. - Assign the scope
read:packages
to the token and enableSSO
for it. - Export the token:
export GITHUB_TOKEN=<Your Personal GitHub Accesss Token with SSO and packages:read>
- Ensure that Node.js and npm work properly:
node -v && npm -v
-
Clone this repository:
git clone [email protected]:otto-de/api-guidelines.git
-
Install the dependencies:
npm ci
The directory ./content
contains the Markdown files for the API Portal's guidelines section.
Our Technical Writing Style Guide helps to write clear and consistent content and explains which custom content elements you can use in your Markdown files.
Run the development service:
npm run serve
Navigate to http://localhost:3000 to see the rendered output.
Happy coding!
Each commit of type feat
or fix
triggers a new npm package release and generates a new changelog entry.
ottoapi_portal will be notified and automatically consumes the new version.
Actions are provided by the ottoapi_cli