1.2.21 • Published 7 months ago

expresso-api v1.2.21

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

ExpressO

An Express.js CLI tool to statically analyze the backend, generating the specification for its routes using the OpenAPI standard.

How to install

npm install -g expresso-api

This will allow you to use the expresso command from anywhere.

Requirements

The project for which you wish to generate the OpenAPI specification should:

  • be an Express.js project;
  • be able to complete the start-up without any errors;

Commands How to use

Generate

This command is used to generate the OpenAPI3.0 specification relative to an Express.js project by statically analyzing it.

Usage: expresso generate [--root] [--start] [--output] [--ext]

Description:

CommandAliasDescriptionDefault
--rootSpecifies the root of the Express.js project to generate an OpenAPI specification for, defaults to current working directory.process.cwd()
--startThe command line that will be used to start the project.npm start
--output-OSpecifies a path of where to output the OpenAPI specification../expresso-openapi
--ext-ESpecifies which format to use for the output between json and yaml.json

Test

This command takes as input another specification and compares it to the one that the tool generates.

Usage: expresso test <OAPIspec> [--root] [--start] [--output] [--ext]

Arguments

ArgumentDescription
OAPIspecSpecifies the file path that points to the OpenAPI specification that the generated one will be tested against.

Options' descriptions

CommandAliasDescriptionDefault
--rootSpecifies the root of the Express.js project to generate an OpenAPI specification for, defaults to current working directory.process.cwd()
--startThe command line that will be used to start the project.npm start
--output-OSpecifies a path of where to output the OpenAPI specification../expresso-openapi
--ext-ESpecifies which format to use for the output between json and yaml.json

Compare

Usage: expresso compare <OAPIspecA> <OAPIspecB> [--json]

Arguments

ArgumentDescription
OAPIspecASpecifies the file path that points to an OpenAPI specification.
OAPIspecBSpecifies the file path that points to a second OpenAPI specification that will be compared to OAPIspecA

Options' descriptions

CommandAliasDescriptionDefault
--json-JSpecifies to produce a JSON instead of a human readable reportFalse

Known Issues

  • The response mining has issues with local identifiers. Global constants are self explanatory but local variables (e.g: status) does not say anything about the type of response.
1.2.8

7 months ago

1.2.13

7 months ago

1.2.10

7 months ago

1.2.11

7 months ago

1.2.16

7 months ago

1.2.17

7 months ago

1.2.14

7 months ago

1.2.15

7 months ago

1.2.18

7 months ago

1.2.19

7 months ago

1.2.20

7 months ago

1.2.21

7 months ago

1.2.9

7 months ago

1.2.7

10 months ago

1.2.6

1 year ago

1.2.0

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.1.2

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.7

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.6-0

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago