Skip to content

Commit

Permalink
doc: Update OpenAPI descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dricazenck committed Dec 7, 2024
1 parent 780035c commit 48beb85
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,27 @@ 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<Object> createPage(@RequestBody final FooterPage footerPage) {
return ResponseEntity.ok(service.create(footerPage));
}

/** 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<Object> 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<Object> updatePage(@RequestBody final FooterPage footerPage) {
return ResponseEntity.ok(service.update(footerPage));
Expand All @@ -57,7 +61,7 @@ public ResponseEntity<Object> 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<Object> updatePage(@RequestBody final LandingPage page) {
return ResponseEntity.ok(service.update(page));
Expand Down

0 comments on commit 48beb85

Please sign in to comment.