swagger-export-rfl

Automated script | Swagger export to react-fetching-library actions

Setup

To install

  • Clone this repo
  • Run npm i

Usage

To use

  • Put your data to data/api.json
  • Run npm run build to compile source files
  • Run npm start, your output files will be in out directory
  • Or run only npm run compile
  • Enjoy yourself!

Notices

Query Params

They are stored in params property, you will have to handle it in your intercepter.

Action Import

It is imported as how I would like to use it, you may have to change it.

GitHub

View Github