Skip to content

Commit

Permalink
fix: swagger-ui docs for organization
Browse files Browse the repository at this point in the history
Fixes trustification#544

Signed-off-by: Jim Crossley <jim@crossleys.org>
  • Loading branch information
jcrossley3 committed Jul 15, 2024
1 parent 7ebe430 commit 936bb66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/fundamental/src/organization/endpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub struct ApiDoc;
Paginated,
),
responses(
(status = 200, description = "Matching organizations", body = PaginatedAdvisorySummary),
(status = 200, description = "Matching organizations", body = PaginatedOrganizationSummary),
),
)]
#[get("/v1/organization")]
Expand All @@ -57,8 +57,8 @@ pub async fn all(
("id", Path, description = "Opaque ID of the organization")
),
responses(
(status = 200, description = "Matching advisory", body = AdvisoryDetails),
(status = 404, description = "Matching advisory not found"),
(status = 200, description = "Matching organization", body = OrganizationDetails),
(status = 404, description = "Matching organization not found"),
),
)]
#[get("/v1/organization/{id}")]
Expand Down

0 comments on commit 936bb66

Please sign in to comment.