0.14.0 • Published 5 years ago

@image-intelligence/engine-api-specification v0.14.0

Weekly downloads
-
License
-
Repository
github
Last release
5 years ago

engine-api-specification

This package contains the API specifications for Ava Engine. The specifications are generated from protobuf files which define the API and compiled into JSON format.

Installation

npm install @image-intelligence/engine-api-specification

Usage

Import the NPM package and reference the relevant version you're after.

import ApiSpec from '@image-intelligence/engine-api-specification';

console.log('Versions:', Object.keys(ApiSpec));

console.log(JSON.stringify(ApiSpec['v1.0.0'], null, 2));

Development

  1. Clone project
git clone git@github.com:ImageIntelligence/ava-engine.git
  1. Make edits to protobufs (./protobuf) as required

  2. To test docs compilation, trigger build script from the root of the project. This will generate a JSON file in the ./docs/specs directory.

Note: The version number used for the file name needs to be incremented manually for now. See ./docs/scripts/compile_docs.sh

sh ./docs/scripts/build.sh

Publishing

To publish, first commit the latest JSON file in the ./docs/specs directory. This step is necessary so we can supply the relevant API specification corresponding to each Engine version we release.

Update ./docs/index.js to include a reference to the latest version of the API spec.

Increment the version number in ./docs/package.json then publish package as normal.

npm publish
0.14.0

5 years ago

0.13.0

5 years ago

0.12.3

5 years ago

0.12.2

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.11.5

5 years ago

0.11.4

5 years ago

0.11.3

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.2

6 years ago

0.9.0

6 years ago

0.8.1

6 years ago

0.8.0-rc7

6 years ago

0.8.0-rc6

6 years ago