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

how to generate open api clients #35

Closed
h1alexbel opened this issue Jun 5, 2024 · 3 comments · Fixed by #36
Closed

how to generate open api clients #35

h1alexbel opened this issue Jun 5, 2024 · 3 comments · Fixed by #36
Labels
documentation Improvements or additions to documentation

Comments

@h1alexbel
Copy link
Owner

first, install generator like that (npm required):

npm install @openapitools/openapi-generator-cli -g

then execute:

openapi-generator-cli generate -i api.yml -g rust -o .

now, you should have the following structure:

src/
  /apis
   mod.rs
   configuration.rs
   default_api.rs
  /models
    mod.rs
    foo.rs
  lib.rs
Cargo.toml
.openapi-generator-ignore
...
@h1alexbel h1alexbel added the documentation Improvements or additions to documentation label Jun 5, 2024
Copy link

github-actions bot commented Jun 5, 2024

@h1alexbel thanks for the report, here is a feedback:

Problems

  1. Missing expected behavior or error description
  2. Lack of environment details
  3. Lack of reproduction steps

I would recommend including a clear and concise description of the expected behavior or error in the bug report.

Please fix the bug report in order it to get resolved faster.
Analyzed with Phind/Phind-CodeLlama-34B-v2

@h1alexbel
Copy link
Owner Author

@l3r8yJ take a look, we need to design in which directory we gonna place those generated structs and funcs

h1alexbel added a commit that referenced this issue Jun 5, 2024
h1alexbel added a commit that referenced this issue Jun 5, 2024
h1alexbel added a commit that referenced this issue Jun 10, 2024
h1alexbel added a commit that referenced this issue Jun 10, 2024
h1alexbel added a commit that referenced this issue Jun 12, 2024
h1alexbel added a commit that referenced this issue Jun 12, 2024
h1alexbel added a commit that referenced this issue Jun 26, 2024
h1alexbel added a commit that referenced this issue Jun 26, 2024
@0pdd
Copy link
Collaborator

0pdd commented Jun 26, 2024

@h1alexbel the puzzle #57 is still not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants