diff --git a/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCatalogController.java b/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCatalogController.java index f4872fa39..4ab4499ce 100644 --- a/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCatalogController.java +++ b/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCatalogController.java @@ -112,8 +112,10 @@ protected WaterSupplyAccountingDao getWaterSupplyAccountingDao(DSLContext dsl) { responses = { @OpenApiResponse(status = STATUS_200, content = { - @OpenApiContent(from = WaterSupplyAccountingDao.class, type = Formats.JSONV1), - @OpenApiContent(from = WaterSupplyAccountingDao.class, type = Formats.JSON) + @OpenApiContent(from = WaterSupplyAccounting.class, isArray = true, + type = Formats.JSONV1), + @OpenApiContent(from = WaterSupplyAccounting.class, isArray = true, + type = Formats.JSON) }), @OpenApiResponse(status = STATUS_404, description = "Pump Accounting not found for " + "provided input parameters."), diff --git a/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCreateController.java b/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCreateController.java index 9b83324e2..7c6564944 100644 --- a/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCreateController.java +++ b/cwms-data-api/src/main/java/cwms/cda/api/watersupply/AccountingCreateController.java @@ -53,9 +53,6 @@ import org.jetbrains.annotations.NotNull; import org.jooq.DSLContext; - - - public class AccountingCreateController implements Handler { private static final String TAG = "Pump Accounting"; private static final String CONTRACT_ID = "contract-id"; @@ -77,7 +74,7 @@ protected WaterSupplyAccountingDao getWaterSupplyAccountingDao(DSLContext dsl) { @OpenApi( requestBody = @OpenApiRequestBody( content = { - @OpenApiContent(from = WaterSupplyAccountingDao.class, type = Formats.JSONV1) + @OpenApiContent(from = WaterSupplyAccounting.class, type = Formats.JSONV1) }, required = true), pathParams = {