1) Generate client using openapi spec generator
2) With token refresh, use the client to get new token
3) provide a method to get an authenticated client
Testing
Did not test yet. Note: this requires toml changes to include pydantic which openapi uses.
Overview
This PR attempts to use APCD api spec to perform CRUD operations on APCD objects.
APCD api openapi spec is available. There are some strategies:
Dynamically Loading OpenAPI Specs:
No generated code in source control
Easily handle updates, by generating this during runtime. Example: tapipy does this today.
generating dynamically would be involve:
Cons: perf is slower, because this is generated runtime.
Cons: no static typing
Related
WP-476
Changes
Using compile time generation
1) Generate client using openapi spec generator 2) With token refresh, use the client to get new token 3) provide a method to get an authenticated client
Testing
UI
Notes