diff --git a/src/main/java/com/wcc/platform/controller/platform/PageController.java b/src/main/java/com/wcc/platform/controller/platform/PageController.java index c8d77528..fc50c104 100644 --- a/src/main/java/com/wcc/platform/controller/platform/PageController.java +++ b/src/main/java/com/wcc/platform/controller/platform/PageController.java @@ -31,7 +31,9 @@ public PageController(final PageService service) { /** Create Footer Page and store into database. */ @PostMapping("/footer") - @Operation(summary = "Create Footer Page") + @Operation( + summary = "Create Footer Data", + description = "Create footer data to be displayed in footer component.") @ResponseStatus(HttpStatus.OK) public ResponseEntity createPage(@RequestBody final FooterPage footerPage) { return ResponseEntity.ok(service.create(footerPage)); @@ -39,15 +41,17 @@ public ResponseEntity createPage(@RequestBody final FooterPage footerPag /** Create Landing Page and store into database. */ @PostMapping("/landingPage") - @Operation(summary = "Update landing page", description = "Update landing page data.") + @Operation( + summary = "Create landing page", + description = "Create new page for landing page data.") @ResponseStatus(HttpStatus.OK) public ResponseEntity createPage(@RequestBody final LandingPage page) { return ResponseEntity.ok(service.create(page)); } - /** Create Footer Page and store into database. */ + /** Update Footer Page and store into database. */ @PutMapping("/footer") - @Operation(summary = "Save Footer Page") + @Operation(summary = "Update Footer Page") @ResponseStatus(HttpStatus.OK) public ResponseEntity updatePage(@RequestBody final FooterPage footerPage) { return ResponseEntity.ok(service.update(footerPage)); @@ -57,7 +61,7 @@ public ResponseEntity updatePage(@RequestBody final FooterPage footerPag @PutMapping("/landingPage") @Operation( summary = "Update landing page", - description = "Update a page which represents landing page.") + description = "Update the content of existent landing page.") @ResponseStatus(HttpStatus.OK) public ResponseEntity updatePage(@RequestBody final LandingPage page) { return ResponseEntity.ok(service.update(page));