Skip to content

Commit 3840339

Browse files
Unity Catalog (Open)API
1 parent 0c04245 commit 3840339

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

docs/openapi/.pages

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
title: OpenAPI
2+
nav:
3+
- index.md
4+
- ...

docs/openapi/control.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Control API
2+
3+
The Control API is described in [api/control.yaml]({{ uc.github }}/api/control.yaml).
4+
5+
`api/control.yaml` is used by [OpenAPI Generator]({{ openapi.home }}) to generate Java classes for the following packages:
6+
7+
* `io.unitycatalog.control.api`
8+
* `io.unitycatalog.control.model`

docs/openapi/index.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# OpenAPI
2+
3+
Unity Catalog API is described by the following OpenAPI specifications:
4+
5+
Title | Server URLs | File
6+
-|-|-
7+
Unity Catalog API | <http://localhost:8080/api/2.1/unity-catalog> | [api/all.yaml]({{ uc.github }}/api/all.yaml)
8+
Unity Control API | <http://localhost:8080/api/1.0/unity-control> | [api/control.yaml]({{ uc.github }}/api/control.yaml)
9+
10+
The OpenAPI specifications are used at build time by [OpenAPI Generator]({{ openapi.home }}) to auto-generate Java classes.
11+
12+
[sbt-openapi-generator]({{ openapi.github }}/sbt-openapi-generator) 7.9.0 is used in the following sbt modules:
13+
14+
* `target/clients/java`
15+
* `target/control/java`
16+
* `clients/python/target` (copied to `clients/python/target/src/unitycatalog)`
17+
* `server/target/controlmodels`
18+
* `server/target/models`
19+
20+
??? note "Thanks for using OpenAPI Generator"
21+
You should see the following message at build time for every sbt module that generates required classes based on the OpenAPI spec:
22+
23+
```text
24+
################################################################################
25+
# Thanks for using OpenAPI Generator #
26+
# Please consider donation to help us maintain this project 🙏 #
27+
# <https://opencollective.com/openapi_generator/donate> #
28+
################################################################################
29+
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ nav:
166166
- ... | persistent-storage/**.md
167167
- ... | server-authorization/**.md
168168
- ... | spark-connector/**.md
169+
- ... | openapi/**.md
169170
- ... | server/**.md
170171
- ... | cli/**.md
171172
- ... | client/**.md

0 commit comments

Comments
 (0)