2.0.45 • Published 1 year ago

@easy-breezy/generator-api v2.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

What is @easy-breezy/generator-api?

@easy-breezy/generator-api - This is the API adapter generation module using @reduxjs/toolkit. For the @easy-breezy/core microframework.

The module generates adapter code using the OpenAPI 2 and OpenAPI 3 specifications.

The module generates schemas, typescript types, and createApi code for endpoints.

Installation

You'll first need to install @easy-breezy/core:

# npm
npm install @easy-breezy/core --save-dev

# yarn
yarn add @easy-breezy/core --dev

Next, install @easy-breezy/generator-api:

# npm
npm install @easy-breezy/generator-api --save-dev

# yarn
yarn add @easy-breezy/generator-api --dev

CLI Usage

If @easy-breezy/core was set globally.

easy-breezy
# or
easybreezy

If @easy-breezy/core has been installed locally then use your command.

Example:

// packages.json
{
    // ...
    "scrips": {
        "generator": "easy-breezy"
    }
}
# npm
npm run generator

# yarn
yarn generator

After starting, just follow the instructions in the CLI

An example of the result of the generator.

The following file structure will be created

your-folder/
├─ your-api-endpoints/
├─ index.ts
├─ extension.ts // File for more detailed customization and expansion @reduxjs/toolkit `createApi`
2.0.45

1 year ago

2.0.37

2 years ago

2.0.38

2 years ago

2.0.35

2 years ago

2.0.36

2 years ago

2.0.33

2 years ago

2.0.34

2 years ago

2.0.31

2 years ago

2.0.32

2 years ago

2.0.39

2 years ago

2.0.44

2 years ago

2.0.42

2 years ago

2.0.43

2 years ago

2.0.40

2 years ago

2.0.41

2 years ago

2.0.30

2 years ago

2.0.29

2 years ago

2.0.28

2 years ago

2.0.27

2 years ago

2.0.26

2 years ago

2.0.25

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago