Skip to content

Commit

Permalink
Merge pull request #3 from eTachkaMarketplace/checkingBugs
Browse files Browse the repository at this point in the history
refactor: Refactoring searchAdvertisement documentation
  • Loading branch information
arturhasparian authored Jan 18, 2024
2 parents a676234 + 98ef5b2 commit 29cc559
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.websocket.server.PathParam;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Sort;
import org.springframework.http.MediaType;
Expand Down Expand Up @@ -48,10 +47,10 @@ public ResponseEntity<ResponseBody<List<AdvertisementDTO>>> searchAdvertisement(
)
@RequestParam("sort") String sortBy,
@Parameter(
description = "Page number",
description = "Index of page",
schema = @Schema(implementation = Integer.class)
)
@PathParam("page") Integer page,
@RequestParam("page") Integer page,
@Parameter(
description = "Number of elements per page",
schema = @Schema(
Expand All @@ -60,7 +59,7 @@ public ResponseEntity<ResponseBody<List<AdvertisementDTO>>> searchAdvertisement(
maximum = "100"
)
)
@PathParam("size") Integer size,
@RequestParam("size") Integer size,
@Parameter(
description = "Filter parameters",
schema = @Schema(
Expand Down

0 comments on commit 29cc559

Please sign in to comment.