2.0.45 • Published 2 months ago

@easy-breezy/generator-api v2.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months 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

2 months ago

2.0.37

9 months ago

2.0.38

9 months ago

2.0.35

9 months ago

2.0.36

9 months ago

2.0.33

10 months ago

2.0.34

10 months ago

2.0.31

10 months ago

2.0.32

10 months ago

2.0.39

8 months ago

2.0.44

7 months ago

2.0.42

8 months ago

2.0.43

8 months ago

2.0.40

8 months ago

2.0.41

8 months ago

2.0.30

10 months ago

2.0.29

11 months ago

2.0.28

11 months ago

2.0.27

12 months ago

2.0.26

12 months ago

2.0.25

12 months ago

2.0.24

12 months ago

2.0.23

12 months ago

2.0.22

12 months ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago