Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

add method before the method name #131

Closed amirjr1378 closed 3 years ago

amirjr1378 commented 3 years ago

for issue #130

Manweill commented 3 years ago

@amirjr1378 you need add new methodMode. eg methodNameMode=restful ?

Manweill commented 3 years ago

btw, restful api always use methodNameMode === 'operationId'

amirjr1378 commented 3 years ago

p

but when i use methodNameMode = 'operationId' instead of 'path' it doesnt generate classes that handles the requests it only create interfaces.

swagger.zip

Manweill commented 3 years ago

because the spec.json do not have operationId.

amirjr1378 commented 3 years ago

because the spec.json do not have operationId.

tnx i add operation id and everything is fine.