You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/server/README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,29 @@
1
-
# Swagger generated server
1
+
# MLX API Server
2
2
3
3
## Overview
4
-
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen)
4
+
5
+
The MLX API server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen)
5
6
project. By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote
6
7
server, you can easily generate a server stub. This is an example of building a Swagger-enabled
7
8
Flask server.
8
9
9
10
This example uses the [Connexion](https://github.com/zalando/connexion) library on top of Flask.
10
11
12
+
## MLX API Server Modules
13
+
14
+
| Python package/script | Purpose |
15
+
| ------------- | ------------- |
16
+
|`code_templates`| Code templates are used to generate sample Kubeflow pipeline DSL scripts for each asset type |
17
+
|`controllers`| Controllers are the code stubs (“interfaces”) for the API endpoints generated by Swagger |
18
+
|`controllers_impl`| Controller implementation of the generated API code stubs (“interfaces”), originally copied from respective controller and then filled in with the actual business logic. API calls get forwarded from the `controllers` to the `controllers_impl` by injection of some code magic in `util.py` (see `codegen.sh`) |
19
+
|`data_access`| Contains 2 clients - MySQL (relational database) and Minio (object storage) for data access |
20
+
|`gateways`| Connects the API server to various services on the Kubernetes cluster like KFServing, Kubeflow Pipelines, and the Kubernetes API |
21
+
|`models`| Swagger generated API classes used to transfer data between API client and API server |
22
+
|`encoder.py`| Implementation of JSON encoder (generated by Swagger) |
23
+
|`util.py`| Collection of helper functions, most notably to “glue” the API `controllers` code stubs to the `controllers_impl` API implementations |
0 commit comments