# Console API

## Common API

> **_Common_** means API is shared between serverless and dedicated.

We have decided to separate serverless and dedicated in Open API. However, UI has some functionalities
that does not distinguish between serverless and dedicated. Such as:

- List clusters
- Get cluster

UI first check whether the cluster is serverless or dedicated. Then it calls the appropriate set of APIs.

This package contains APIs that are shared between serverless and dedicated.

## BFF API

For some features, UI has special API requirements compared to Open API.
The typical implementation of those specialized APIs is orchestrating and transpiling multiple Open APIs to a single atomic UI API.

To enhance user experience and avoid redundant API development, we use a Backend For Frontend (BFF) service.
This allows us to utilize our own Open API while providing a seamless experience on the UI.

This package contains BFF APIs specifically designed for UI usage.
