Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@easy-breezy/generator-api

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easy-breezy/generator-api

RTK adapter generator from OpenAPI specification

  • 2.0.45
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
65
decreased by-50.38%
Maintainers
1
Weekly downloads
 
Created
Source

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`

Keywords

FAQs

Package last updated on 28 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc