Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a PHP class from an API Spec #23

Open
tacman opened this issue Aug 14, 2023 · 0 comments
Open

Generate a PHP class from an API Spec #23

tacman opened this issue Aug 14, 2023 · 0 comments
Assignees

Comments

@tacman
Copy link
Collaborator

tacman commented Aug 14, 2023

We have an OpenAPI spec here: https://libretranslate.com/spec

We should be able to generate a PHP using this tool: https://openapi-generator.tech/#try

save the spec as libretranslate.json and run something like this (not tested)

docker run --rm \
    -v $PWD:/local openapitools/openapi-generator-cli generate \
    -i libretranslate.json
    -g php \
    -o .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants