swagger-axios-codegen
Advanced tools
Changelog
0.4.0
Service
filter and Service[method]
filter. for example like this, or use cd example && yarn build:api-include
let include = [
'Products', // tagName
'Estimates',//tagName
{ 'User': ['history'] }
]
codegen({
methodNameMode: 'path',
source: require('../swagger.json'),
outputDir: './swagger/services',
include
})
Changelog
0.3.3
axios.instance
(issue 6 with kt81)axios
library, for example Fly.js, required setting ISwaggerOptions.useCustomerRequestInstance = true
ISwaggerOptions.serviceNameSuffix
,use for customize Service
class suffixISwaggerOptions.useStaticMethod = true
is defaulttsconfig.json
、 npm script
)