Skip to content

Commit

Permalink
Updated Swagger documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-rma committed Jul 29, 2024
1 parent 0a7238d commit cdcd880
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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."),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 = {
Expand Down

0 comments on commit cdcd880

Please sign in to comment.