Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.72 KB

File metadata and controls

71 lines (47 loc) · 1.72 KB

Code of conduct

API CLI

Make requests to the scoring system and get your API a grade.

Learn more in the doc!



This folder contains the API CLI. The structure is the following:

└─ api-cli/
    └─ code/
      └─ commands/
    └─ config/
    └─ samples/

Once you install this CLI, you will be able to:

  • Verify if an API is well-designed.
  • Verify an API contract specification (OpenAPI, AsyncAPI, Avro, Protobuf Buffer) or the respective documentation files (Markdown).

⚙️ Installation and usage

  1. You can start by cloning this repository:
 git clone git@github.com:InditexTech/api-scoring-engine.git
  1. Install the downloaded code dependencies:
npm i
  1. Link the 'apicli' command to local installation:
npm link

Then, you can use any of these commands:

  • verify, with which you can obtain the score of the API, all along with some helpful information like version numbers or protocol.

  • verify-file, verifies an OpenAPI specification file.

  • general and command-dedicated help, in case you need further information.


Find more information and output examples in our documentation!