Skip to content

Commit

Permalink
api tag probes -> system/probes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow committed Feb 26, 2024
1 parent 186b411 commit 31d557e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions nexus/src/external_api/http_entrypoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5979,7 +5979,7 @@ async fn current_user_ssh_key_delete(
#[endpoint {
method = GET,
path = "/v1/probes",
tags = ["probes"],
tags = ["system/probes"],
}]
async fn probe_list(
rqctx: RequestContext<Arc<ServerContext>>,
Expand Down Expand Up @@ -6017,7 +6017,7 @@ async fn probe_list(
#[endpoint {
method = GET,
path = "/v1/probes/{probe}",
tags = ["probes"],
tags = ["system/probes"],
}]
async fn probe_view(
rqctx: RequestContext<Arc<ServerContext>>,
Expand All @@ -6044,7 +6044,7 @@ async fn probe_view(
#[endpoint {
method = POST,
path = "/v1/probes",
tags = ["probes"],
tags = ["system/probes"],
}]
async fn probe_create(
rqctx: RequestContext<Arc<ServerContext>>,
Expand Down Expand Up @@ -6072,7 +6072,7 @@ async fn probe_create(
#[endpoint {
method = DELETE,
path = "/v1/probes/{probe}",
tags = ["probes"],
tags = ["system/probes"],
}]
async fn probe_delete(
rqctx: RequestContext<Arc<ServerContext>>,
Expand Down
2 changes: 1 addition & 1 deletion nexus/src/external_api/tag-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"url": "http://docs.oxide.computer/api/vpcs"
}
},
"probes": {
"system/probes": {
"description": "Probes for testing network connectivity",
"external_docs": {
"url": "http://docs.oxide.computer/api/probes"
Expand Down
14 changes: 7 additions & 7 deletions nexus/tests/output/nexus_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ OPERATION ID METHOD URL PATH
system_policy_update PUT /v1/system/policy
system_policy_view GET /v1/system/policy

API operations found with tag "probes"
OPERATION ID METHOD URL PATH
probe_create POST /v1/probes
probe_delete DELETE /v1/probes/{probe}
probe_list GET /v1/probes
probe_view GET /v1/probes/{probe}

API operations found with tag "projects"
OPERATION ID METHOD URL PATH
project_create POST /v1/projects
Expand Down Expand Up @@ -190,6 +183,13 @@ networking_switch_port_settings_delete DELETE /v1/system/networking/switch-p
networking_switch_port_settings_list GET /v1/system/networking/switch-port-settings
networking_switch_port_settings_view GET /v1/system/networking/switch-port-settings/{port}

API operations found with tag "system/probes"
OPERATION ID METHOD URL PATH
probe_create POST /v1/probes
probe_delete DELETE /v1/probes/{probe}
probe_list GET /v1/probes
probe_view GET /v1/probes/{probe}

API operations found with tag "system/silos"
OPERATION ID METHOD URL PATH
local_idp_user_create POST /v1/system/identity-providers/local/users
Expand Down
22 changes: 11 additions & 11 deletions openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -3313,7 +3313,7 @@
"/v1/probes": {
"get": {
"tags": [
"probes"
"system/probes"
],
"summary": "List instrumentation probes.",
"operationId": "probe_list",
Expand Down Expand Up @@ -3380,7 +3380,7 @@
},
"post": {
"tags": [
"probes"
"system/probes"
],
"summary": "Create an instrumentation probe.",
"operationId": "probe_create",
Expand Down Expand Up @@ -3428,7 +3428,7 @@
"/v1/probes/{probe}": {
"get": {
"tags": [
"probes"
"system/probes"
],
"summary": "View an instrumentation probe.",
"operationId": "probe_view",
Expand Down Expand Up @@ -3473,7 +3473,7 @@
},
"delete": {
"tags": [
"probes"
"system/probes"
],
"summary": "Delete an instrumentation probe.",
"operationId": "probe_delete",
Expand Down Expand Up @@ -17734,13 +17734,6 @@
"url": "http://docs.oxide.computer/api/policy"
}
},
{
"name": "probes",
"description": "Probes for testing network connectivity",
"externalDocs": {
"url": "http://docs.oxide.computer/api/probes"
}
},
{
"name": "projects",
"description": "Projects are a grouping of associated resources such as instances and disks within a silo for purposes of billing and access control.",
Expand Down Expand Up @@ -17797,6 +17790,13 @@
"url": "http://docs.oxide.computer/api/system-networking"
}
},
{
"name": "system/probes",
"description": "Probes for testing network connectivity",
"externalDocs": {
"url": "http://docs.oxide.computer/api/probes"
}
},
{
"name": "system/silos",
"description": "Silos represent a logical partition of users and resources.",
Expand Down

0 comments on commit 31d557e

Please sign in to comment.