From a384cfcd1ec3f1d21a8ef44d5197a3e6a61a70cd Mon Sep 17 00:00:00 2001 From: TomReed Date: Tue, 13 Aug 2024 14:14:06 +0100 Subject: [PATCH] add swagger annotations --- .../hmcts/opal/controllers/CreateFineAccountsController.java | 2 ++ .../hmcts/opal/controllers/DebtorProfileSearchController.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/uk/gov/hmcts/opal/controllers/CreateFineAccountsController.java b/src/main/java/uk/gov/hmcts/opal/controllers/CreateFineAccountsController.java index 142b20195..83f85e1ee 100644 --- a/src/main/java/uk/gov/hmcts/opal/controllers/CreateFineAccountsController.java +++ b/src/main/java/uk/gov/hmcts/opal/controllers/CreateFineAccountsController.java @@ -1,5 +1,6 @@ package uk.gov.hmcts.opal.controllers; +import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; @@ -18,6 +19,7 @@ public class CreateFineAccountsController { @PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE) + @Operation(summary = "cpp interface: creates fine accounts by criteria in request body xml.") public ResponseEntity createFineAccounts(OpalS2SRequestWrapper createFineAccountsRequest) { log.info(":POST:createFineAccounts: request: \n{}", createFineAccountsRequest); diff --git a/src/main/java/uk/gov/hmcts/opal/controllers/DebtorProfileSearchController.java b/src/main/java/uk/gov/hmcts/opal/controllers/DebtorProfileSearchController.java index d9d4c633f..4550488ba 100644 --- a/src/main/java/uk/gov/hmcts/opal/controllers/DebtorProfileSearchController.java +++ b/src/main/java/uk/gov/hmcts/opal/controllers/DebtorProfileSearchController.java @@ -1,5 +1,6 @@ package uk.gov.hmcts.opal.controllers; +import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; @@ -18,6 +19,7 @@ public class DebtorProfileSearchController { @PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE) + @Operation(summary = "cpp interface: Searches for debtor profile by criteia in request body xml.") public ResponseEntity searchDebtorProfile(OpalS2SRequestWrapper debtorProfileRequest) { log.info(":POST:searchDebtorProfile: request: \n{}", debtorProfileRequest);