You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/api/JournalEntriesApiResource.java
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,10 @@
28
28
importjakarta.ws.rs.Consumes;
29
29
importjakarta.ws.rs.GET;
30
30
importjakarta.ws.rs.POST;
31
+
importio.swagger.v3.oas.annotations.Operation;
32
+
importio.swagger.v3.oas.annotations.tags.Tag;
31
33
importjakarta.ws.rs.Path;
34
+
32
35
importjakarta.ws.rs.PathParam;
33
36
importjakarta.ws.rs.Produces;
34
37
importjakarta.ws.rs.QueryParam;
@@ -98,7 +101,7 @@ public class JournalEntriesApiResource {
98
101
99
102
@GET
100
103
@Produces({ MediaType.APPLICATION_JSON })
101
-
@Operation(summary = "List Journal Entries", operationId = "retrieveAllJournalEntries", description = "The list capability of journal entries can support pagination and sorting.\n\n"
104
+
@Operation(summary = "List Journal Entries", operationId = "retrieveAllJournalEntries", tags = {"Journal Entries"}, description = "The list capability of journal entries can support pagination and sorting.\n\n"
@@ -188,7 +191,7 @@ public String retrieveJournalEntryById(
188
191
@POST
189
192
@Consumes({ MediaType.APPLICATION_JSON })
190
193
@Produces({ MediaType.APPLICATION_JSON })
191
-
@Operation(summary = "Create \"Balanced\" Journal Entries", description = "Note: A Balanced (simple) Journal entry would have atleast one \"Debit\" and one \"Credit\" entry whose amounts are equal \n"
194
+
@Operation(summary = "Create \"Balanced\" Journal Entries", tags = {"Journal Entries"}, description = "Note: A Balanced (simple) Journal entry would have atleast one \"Debit\" and one \"Credit\" entry whose amounts are equal \n"
192
195
+ "Compound Journal entries may have \"n\" debits and \"m\" credits where both \"m\" and \"n\" are greater than 0 and the net sum or all debits and credits are equal \n\n"
@@ -218,7 +221,7 @@ public String createGLJournalEntry(@Parameter(hidden = true) final String jsonRe
218
221
@Path("{transactionId}")
219
222
@Consumes({ MediaType.APPLICATION_JSON })
220
223
@Produces({ MediaType.APPLICATION_JSON })
221
-
@Operation(summary = "Update Running balances for Journal Entries", description = "This API calculates the running balances for office. If office ID not provided this API calculates running balances for all offices. \n"
224
+
@Operation(summary = "Update Running balances for Journal Entries", tags = {"Journal Entries"}, description = "This API calculates the running balances for office. If office ID not provided this API calculates running balances for all offices. \n"
@@ -254,6 +260,7 @@ public String retrieveJournalEntries(@QueryParam("offset") final Integer offset,
254
260
@GET
255
261
@Path("openingbalance")
256
262
@Produces({ MediaType.APPLICATION_JSON })
263
+
@Operation(summary = "Retrieve Opening Balance", description = "Returns the opening balance for a specific office and currency.", tags = {"Journal Entries"})
0 commit comments