diff --git a/nexus/external-api/src/lib.rs b/nexus/external-api/src/lib.rs index 54ba3ab34b..ee33f3161f 100644 --- a/nexus/external-api/src/lib.rs +++ b/nexus/external-api/src/lib.rs @@ -1,7 +1,7 @@ use std::collections::BTreeMap; use anyhow::anyhow; -use dropshot::Body; +use dropshot::{Body, FreeformBody}; use dropshot::{ EmptyScanParams, EndpointTagPolicy, HttpError, HttpResponseAccepted, HttpResponseCreated, HttpResponseDeleted, HttpResponseFound, @@ -2824,7 +2824,7 @@ pub trait NexusExternalApi { async fn support_bundle_download( rqctx: RequestContext, path_params: Path, - ) -> Result, HttpError>; + ) -> Result, HttpError>; /// Download a file within a support bundle #[endpoint { @@ -2835,7 +2835,7 @@ pub trait NexusExternalApi { async fn support_bundle_download_file( rqctx: RequestContext, path_params: Path, - ) -> Result, HttpError>; + ) -> Result, HttpError>; /// Download the metadata of a support bundle #[endpoint { diff --git a/nexus/src/external_api/http_entrypoints.rs b/nexus/src/external_api/http_entrypoints.rs index cfc9f99851..5a6a3527f3 100644 --- a/nexus/src/external_api/http_entrypoints.rs +++ b/nexus/src/external_api/http_entrypoints.rs @@ -14,7 +14,6 @@ use super::{ }, }; use crate::{context::ApiContext, external_api::shared}; -use dropshot::Body; use dropshot::EmptyScanParams; use dropshot::HttpError; use dropshot::HttpResponseDeleted; @@ -29,6 +28,7 @@ use dropshot::ResultsPage; use dropshot::TypedBody; use dropshot::WhichPage; use dropshot::{ApiDescription, StreamingBody}; +use dropshot::{Body, FreeformBody}; use dropshot::{HttpResponseAccepted, HttpResponseFound, HttpResponseSeeOther}; use dropshot::{HttpResponseCreated, HttpResponseHeaders}; use dropshot::{WebsocketChannelResult, WebsocketConnection}; @@ -6099,7 +6099,7 @@ impl NexusExternalApi for NexusExternalApiImpl { async fn support_bundle_download( rqctx: RequestContext, _path_params: Path, - ) -> Result, HttpError> { + ) -> Result, HttpError> { let apictx = rqctx.context(); let handler = async { let nexus = &apictx.context.nexus; @@ -6122,7 +6122,7 @@ impl NexusExternalApi for NexusExternalApiImpl { async fn support_bundle_download_file( rqctx: RequestContext, _path_params: Path, - ) -> Result, HttpError> { + ) -> Result, HttpError> { let apictx = rqctx.context(); let handler = async { let nexus = &apictx.context.nexus; diff --git a/openapi/nexus.json b/openapi/nexus.json index bc043059dd..3df07c952f 100644 --- a/openapi/nexus.json +++ b/openapi/nexus.json @@ -475,13 +475,19 @@ } ], "responses": { - "default": { + "200": { "description": "", "content": { "*/*": { "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } }, @@ -544,13 +550,19 @@ } ], "responses": { - "default": { + "200": { "description": "", "content": { "*/*": { "schema": {} } } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" } } },