Skip to content

Repository files navigation

OpenAPI Generated Clients for CUBE

This repository contains client libraries for the ChRIS backend created using the OpenAPI generator.

Documentation

Package Language Description
aiochris-oag Python Python client based on asyncio and aiohttp.
chris-oag Python Python client based on urllib3.

Releasing

It would be nice for this to be fully automated, but currently it is not. FNNDSC/ChRIS_ultron_backEnd#587

When a breaking release is made in https://github.com/FNNDSC/ChRIS_ultron_backEnd...

git clone git@github.com:FNNDSC/openapi-clients.git
cd openapi-clients

echo "1.2.3" > version.txt  # increase the value of version.txt as appropriate
just  # regenerate all client code

git add -A
git commit -m "Version $(< version.txt)"
git push origin main

Adding A Generator

Many other generators are available. See the list here: https://openapi-generator.tech/docs/generators

To add a generator, create a YAML configuration file for it in configs.

Hacks

The rust generator is lacking for several reasons:

To avoid these problems, we:

  1. Avoid generating the Rust client, produce serde models only
  2. Apply manual patches to fix models

About

OpenAPI generated client libraries for the ChRIS backend

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages