-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
# Rate My OpenAPI CLI | ||
|
||
This repo contains the public cli | ||
<p align="center"> | ||
<a href="https://ratemyopenapi.com/"> | ||
<img src="https://github.com/zuplo/rate-my-openapi/blob/main/assets/gh-header.png" height="96"> | ||
<h3 align="center">Rate My Open API</h3> | ||
</a> | ||
</p> | ||
|
||
This CLI project aims to give a rating to OpenAPI definitions so you can understand | ||
how helpful they are for the OpenAPI lifecycle. Having a low score might mean | ||
that your journey of governing your API is going to be harder than it should. | ||
|
||
# RMOA CLI | ||
|
||
``` | ||
rmoa <command> | ||
Commands: | ||
rmoa lint | ||
Uploads an Open API file & gets it's Rate My Open API results | ||
Options: | ||
--version Show version number [boolean] | ||
--help Show help [boolean] | ||
--api-key The API Key from Zuplo [string] [required] | ||
--filename The OpenApi file name to process [string] [required] | ||
--dir The directory containing your Open API file[string] [default: "."] | ||
--output default, json [string] [default: "default"] | ||
``` | ||
|
||
## Using the CLI | ||
|
||
You can also use the CLI to lint & get a score for your OpenAPI definition. | ||
Create your api key on the [Rate My Open API Portal](https://api.ratemyopenapi.com/docs) | ||
|
||
``` | ||
npx rmoa lint --dir /path/to/your/ --filename openapi.json --api-key zpka_1b... | ||
``` | ||
|