0.0.56 • Published 2 years ago

axios-swagger-helper v0.0.56

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

This repository is no longer maintained

see typescript https://github.com/minskiter/auto-openapi

Open Api 3.0 Auto Gen Js Axios Client Code

npm.io npm.io

What is axios-swagger-helper?

  1. Automatically export from swagger.json(OPEN API 3)

  2. The example of file:

    • dir

      image

    • api file (auto generate)

    Snipaste 2021 10 02 21 31 59

    • custom config(config.js)

      image

    • global types(Vue):

      image

INSTALL

yarn global add axios-swagger-helper
# npm install -g axios-swagger-helper

use single project

yarn add -D axios-swagger-helper
# npm install -D axios-swagger-helper

package.json

{
    "scripts":{
        "api":"api-cli get https://example.com/swagger/v1/swagger.json -d ./api"
    }
}

USAGE

# Global
api-cli get {url} -d {output_dir}

Devlopment

Issues

Template:

Swagger Docs Url: http://localhost:5000/swagger/v1/swagger.json

Problem: something decode fail... image

CHANGE LOG

2021-3-20 v0.0.44

  1. UploadProgress Callback Function
  2. DownloadProgress Callback Function

2021-3-6 v0.0.42

  1. Import userModel
  2. Format parameter type {userModel.*}

2021-3-5 v0.0.41

  1. Add model classes file
  2. Rename axios.js config.js
  3. Add import models resolve
  4. Update Warning Model.js will change the old parameters, please use the class instead
0.0.54

2 years ago

0.0.55

2 years ago

0.0.56

2 years ago

0.0.53

3 years ago

0.0.51

4 years ago

0.0.52

4 years ago

0.0.50

4 years ago

0.0.48

4 years ago

0.0.49

4 years ago

0.0.47

4 years ago

0.0.46

4 years ago

0.0.44

4 years ago

0.0.45

4 years ago

0.0.43

4 years ago

0.0.42

4 years ago

0.0.41

4 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.33

5 years ago

0.0.34

5 years ago

0.0.35

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.23

5 years ago

0.0.20

5 years ago

0.0.16

5 years ago

0.0.18

5 years ago

0.0.14

5 years ago

0.0.15

5 years ago

0.0.12

5 years ago

0.0.13

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago