/pim-api-docs

Akeneo Web API documentation (contributions are welcomed!)

Primary LanguageHTML

Akeneo Web API documentation

This repository holds the sources for the documentation of the web API that was released in 1.7.

The API documentation can be found here: api.akeneo.com.

Installation for dev/preview purposes

Requirements

Node.js is required. You can optionally choose Yarn as package manager instead of NPM (provided with NodeJS by default).

Run locally

First, install the all dependencies with Yarn:

yarn install

or with NPM:

npm install

Then run the Gulp server, with Yarn:

yarn serve

or with NPM:

npm serve

The API documentation site is then available on localhost:8000. Files located in the content and src directories are watched for changes, so when developing you do not need to launch any other task.

Swagger

As our YAML Swagger spec uses references and links, it is considered as non-valid. During the build, we generate a valid JSON specification that is put under the content/swagger folder. Don't forget to version it if you made any change into the YAML Swagger spec.