umccr-illumina / libica

:snake: Python SDK for Illumina Connected Analytics (ICA) :dragon:
MIT License
5 stars 4 forks source link

Added example how to use API request and response endpoint version #136

Closed victorskl closed 3 months ago

victorskl commented 3 months ago
victorskl commented 3 months ago

To the observer/wanderer;

In this PR; the API versioning through media type / content type header in question is defined here. https://github.com/umccr-illumina/libica/blob/c67da3f/swagger/openapi_public.yaml#L3721-L3750

If you are using openapi-generator to generate SDK and, having similar OpenAPI definition; the code snippet in PR show how to switch request/response API version from the client/SDK side.

Though, the server has to respond the body content representation accordingly.

Upstream / related: