Modify templates for ng-openapi-gen Angular http swagger openapi
Budget: $10 – $30 CAD
I want to generate from an openapi definition file an angular http client
i am using:
https://www.npmjs.com/package/ng-openapi-gen
I use it like this:
# Define the command to execute
cmd = ['npx','ng-openapi-gen', '-i', openapi_path, '-o', ouputpath]
# Execute the command as a subprocess
result = subprocess.run(cmd, capture_output=True, text=True, shell=True)
template i found that needs adaption?
https://github.com/cyclosproject/ng-openapi-gen/blob/master/templates/service.handlebars
goal is to change the name structure it should be
(generates from the operationID the method name...)
ServiceSongGetPagePath -> getPathPath
serviceSongGetPage$Response -> getPage$Response
serviceSongInsert-> insert
serviceSongGet -> get
etc.
should work for every service in the api.
https://editor-next.swagger.io/
Swagger api documentation and an service ouput example is in the attachments
Do not hesitate to ask you're questions.
i am using:
https://www.npmjs.com/package/ng-openapi-gen
I use it like this:
# Define the command to execute
cmd = ['npx','ng-openapi-gen', '-i', openapi_path, '-o', ouputpath]
# Execute the command as a subprocess
result = subprocess.run(cmd, capture_output=True, text=True, shell=True)
template i found that needs adaption?
https://github.com/cyclosproject/ng-openapi-gen/blob/master/templates/service.handlebars
goal is to change the name structure it should be
(generates from the operationID the method name...)
ServiceSongGetPagePath -> getPathPath
serviceSongGetPage$Response -> getPage$Response
serviceSongInsert-> insert
serviceSongGet -> get
etc.
should work for every service in the api.
https://editor-next.swagger.io/
Swagger api documentation and an service ouput example is in the attachments
Do not hesitate to ask you're questions.