cslink
v0.0.20
Published
cslink
Maintainers
Readme
Client/Server link
Cslink allow smallapi users to generate a complete client using axios for their APIs.
install
npm install -g cslinkUsage
cslink {serverUrl} [dst] [install] [serverVar] [authorization] [decodeKey]Required parameters:
- serverUrl: the API server url
Optional parameters:
- dst: the destination path for generated files • default '.'
- install: true|false install required modules • default false
- serverVar: if filled replace the server url in the api client file • default null
- authorization: authorization or apiKey used for api access authorization • default null
- decodeKey: decode secret used for data encryption • default null
Example
cslink http://localhost:3097 dst=src/api install=true serverVar=process.env.REACT_APP_API_BASE_URL authorization=my-api-key decodeKey=my-encryption-keyAuthor
👤 tutanck
This README was generated with ❤️ by readme-md-generator
