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 the Client and models from the openapi spec #119

Closed
carlosthe19916 opened this issue Jul 21, 2024 · 2 comments
Closed

Generate the Client and models from the openapi spec #119

carlosthe19916 opened this issue Jul 21, 2024 · 2 comments

Comments

@carlosthe19916
Copy link
Member

As UI developers and Backend developers are working separately it would be good relying on the openapi spec to generate the models and/or the client for communicating with the backend.

Here is a tool that might help https://github.com/hey-api/openapi-ts

This is a proposal and should be properly evaluated to consider if it makes things easier. If it increases complexity then no.

@chirino
Copy link
Contributor

chirino commented Jul 22, 2024

The generator likely won't be able to generate anything nice until we fix the generated openapi spec a bit. It likely depends on trustification/trustify#580 being fixed first.

chirino added a commit to chirino/trustify-ui that referenced this issue Jul 22, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Jul 24, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Jul 25, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Jul 25, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Jul 25, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Jul 25, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Jul 25, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Jul 25, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Signed-off-by: Hiram Chirino <[email protected]>
chirino added a commit to chirino/trustify-ui that referenced this issue Aug 5, 2024
* Initial step in implementing trustification#119

The generated code lived in to the `client/src/app/client`. 
The goal should be to replace all the api calls with client calls.

Added `npm run generate` and `npm run prettier` sub commands.

Signed-off-by: Hiram Chirino <[email protected]>
@carlosthe19916
Copy link
Member Author

This has been done already some time ago, I don't recall the exact PR though. Closing this issue as it has been completed

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