Commit 662675c
refactor: Generated client and data types from korrel8r spec.
Need to extend the korrel8r client, would like to use a swagger/openapi code generator with the
korrel8r swagger spec to make it easy to keep up with future changes.
Here is one possible generated client.
There are several possibilities, requesting feedback:
1. Use this generated client as-is to replace the existing client and cancellablefetch
2. Use only the generated model/ with the existing client.
3. Use some other generator (please suggest which one)
Other changes:
- Add custom headers by creating and using a named client
- Fix default api domain for API calls to include korrel8r api path
- Update useKorrel8r to use new format
- Fix error handling using new type
- Replace query.types with generated client/model types.1 parent bda62bc commit 662675c
32 files changed
Lines changed: 1570 additions & 97 deletions
File tree
- korrel8r
- web
- src
- components
- topology
- hooks
- korrel8r
- client
- core
- models
- services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments