Skip to content

Commit a49aa1b

Browse files
authored
[openapi] migrate to dropshot API manager (#9058)
Part of #8922.
1 parent 65b3308 commit a49aa1b

File tree

48 files changed

+633
-6061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+633
-6061
lines changed

Cargo.lock

Lines changed: 210 additions & 178 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ members = [
3636
"dev-tools/crdb-seed",
3737
"dev-tools/db-dev",
3838
"dev-tools/downloader",
39+
"dev-tools/dropshot-apis",
3940
"dev-tools/ls-apis",
4041
"dev-tools/mgs-dev",
4142
"dev-tools/omdb",
4243
"dev-tools/omicron-dev",
4344
"dev-tools/omicron-dev-lib",
44-
"dev-tools/openapi-manager",
45-
"dev-tools/openapi-manager/types",
4645
"dev-tools/oxlog",
4746
"dev-tools/pins",
4847
"dev-tools/reconfigurator-cli",
@@ -196,13 +195,12 @@ default-members = [
196195
"dev-tools/crdb-seed",
197196
"dev-tools/db-dev",
198197
"dev-tools/downloader",
198+
"dev-tools/dropshot-apis",
199199
"dev-tools/ls-apis",
200200
"dev-tools/mgs-dev",
201201
"dev-tools/omdb",
202202
"dev-tools/omicron-dev",
203203
"dev-tools/omicron-dev-lib",
204-
"dev-tools/openapi-manager",
205-
"dev-tools/openapi-manager/types",
206204
"dev-tools/oxlog",
207205
"dev-tools/pins",
208206
"dev-tools/reconfigurator-cli",
@@ -438,6 +436,8 @@ dns-server-api = { path = "dns-server-api" }
438436
dns-service-client = { path = "clients/dns-service-client" }
439437
dpd-client = { git = "https://github.com/oxidecomputer/dendrite", rev = "b3cdd095437f388069aa57be5efac4b4fadc7b4f" }
440438
dropshot = { version = "0.16.3", features = [ "usdt-probes" ] }
439+
dropshot-api-manager = "0.2.1"
440+
dropshot-api-manager-types = "0.2.1"
441441
dyn-clone = "1.0.20"
442442
either = "1.15.0"
443443
ereport-types = { path = "ereport/types" }
@@ -597,7 +597,6 @@ oxlog = { path = "dev-tools/oxlog" }
597597
oxnet = "0.1.3"
598598
once_cell = "1.21.3"
599599
openapi-lint = { git = "https://github.com/oxidecomputer/openapi-lint", branch = "main" }
600-
openapi-manager-types = { path = "dev-tools/openapi-manager/types" }
601600
openapiv3 = "2.2.0"
602601
# must match samael's crate!
603602
openssl = "0.10"
@@ -964,6 +963,8 @@ opt-level = 3
964963
# diesel = { path = "../../diesel/diesel" }
965964
# dropshot = { path = "../dropshot/dropshot" }
966965
# dropshot_endpoint = { path = "../dropshot/dropshot_endpoint" }
966+
# dropshot-api-manager = { path = "../dropshot-api-manager/crates/dropshot-api-manager" }
967+
# dropshot-api-manager-types = { path = "../dropshot-api-manager/crates/dropshot-api-manager-types" }
967968
# progenitor = { path = "../progenitor/progenitor" }
968969
# progenitor-client = { path = "../progenitor/progenitor-client" }
969970
# steno = { path = "../steno" }

clickhouse-admin/api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ workspace = true
1010
[dependencies]
1111
clickhouse-admin-types.workspace = true
1212
dropshot.workspace = true
13+
dropshot-api-manager-types.workspace = true
1314
omicron-common.workspace = true
1415
omicron-uuid-kinds.workspace = true
1516
omicron-workspace-hack.workspace = true
16-
openapi-manager-types.workspace = true
1717
schemars.workspace = true
1818
semver.workspace = true
1919
serde.workspace = true

clickhouse-admin/api/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ use dropshot::{
1212
HttpError, HttpResponseCreated, HttpResponseOk,
1313
HttpResponseUpdatedNoContent, Path, Query, RequestContext, TypedBody,
1414
};
15+
use dropshot_api_manager_types::api_versions;
1516
use omicron_common::api::external::Generation;
16-
use openapi_manager_types::{
17-
SupportedVersion, SupportedVersions, api_versions,
18-
};
1917

2018
api_versions!([
2119
// NOTE: These versions will be used across **all three** APIs defined in

cockroach-admin/api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ workspace = true
1010
[dependencies]
1111
cockroach-admin-types.workspace = true
1212
dropshot.workspace = true
13+
dropshot-api-manager-types.workspace = true
1314
http.workspace = true
1415
omicron-common.workspace = true
1516
omicron-uuid-kinds.workspace = true
1617
omicron-workspace-hack.workspace = true
17-
openapi-manager-types.workspace = true
1818
schemars.workspace = true
1919
semver.workspace = true
2020
serde.workspace = true

cockroach-admin/api/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ use dropshot::{
77
HttpError, HttpResponseOk, HttpResponseUpdatedNoContent, RequestContext,
88
TypedBody,
99
};
10+
use dropshot_api_manager_types::api_versions;
1011
use omicron_uuid_kinds::OmicronZoneUuid;
11-
use openapi_manager_types::{
12-
SupportedVersion, SupportedVersions, api_versions,
13-
};
1412
use schemars::JsonSchema;
1513
use serde::{Deserialize, Serialize};
1614

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,34 @@
11
[package]
2-
name = "openapi-manager"
2+
name = "omicron-dropshot-apis"
33
version = "0.1.0"
44
edition = "2021"
5-
license = "MPL-2.0"
6-
7-
[lints]
8-
workspace = true
95

106
[dependencies]
117
anyhow.workspace = true
12-
atomicwrites.workspace = true
138
bootstrap-agent-api.workspace = true
149
camino.workspace = true
1510
clap.workspace = true
1611
clickhouse-admin-api.workspace = true
1712
cockroach-admin-api.workspace = true
18-
debug-ignore.workspace = true
1913
dns-server-api.workspace = true
20-
dropshot.workspace = true
21-
fs-err.workspace = true
14+
dropshot-api-manager-types.workspace = true
15+
dropshot-api-manager.workspace = true
2216
gateway-api.workspace = true
23-
hex.workspace = true
24-
indent_write.workspace = true
2517
installinator-api.workspace = true
26-
itertools.workspace = true
27-
newtype_derive.workspace = true
2818
nexus-external-api.workspace = true
2919
nexus-internal-api.workspace = true
3020
nexus-lockstep-api.workspace = true
3121
ntp-admin-api.workspace = true
3222
omicron-workspace-hack.workspace = true
3323
openapi-lint.workspace = true
34-
openapi-manager-types.workspace = true
3524
openapiv3.workspace = true
36-
owo-colors.workspace = true
3725
oximeter-api.workspace = true
3826
repo-depot-api.workspace = true
3927
semver.workspace = true
28+
serde.workspace = true
4029
serde_json.workspace = true
41-
sha2.workspace = true
42-
similar.workspace = true
4330
sled-agent-api.workspace = true
44-
slog-error-chain.workspace = true
45-
supports-color.workspace = true
46-
textwrap.workspace = true
47-
thiserror.workspace = true
4831
wicketd-api.workspace = true
4932

50-
[dev-dependencies]
51-
assert_matches.workspace = true
33+
[lints]
34+
workspace = true

0 commit comments

Comments
 (0)