Skip to content

Commit

Permalink
feat: Allow to anonymous users to access Public Site navigation - MEE…
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker authored and exo-swf committed Oct 28, 2023
1 parent a8b1699 commit ef7c755
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ public NavigationRest(UserPortalConfigService portalConfigService,

@GET
@Produces(MediaType.APPLICATION_JSON)
@RolesAllowed("users")
@Operation(summary = "Gets navigations", description = "Gets navigations", method = "GET")
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Request fulfilled"),
@ApiResponse(responseCode = "400", description = "Invalid query input"),
@ApiResponse(responseCode = "404", description = "Navigation does not exist"),
@ApiResponse(responseCode = "500", description = "Internal server error") })
public Response getSiteNavigation(@Context
HttpServletRequest request,
public Response getSiteNavigation(
@Context
HttpServletRequest request,
@Parameter(description = "Offset", required = false)
@Schema(defaultValue = "0")
@QueryParam("offset")
Expand Down Expand Up @@ -131,14 +131,14 @@ public Response getSiteNavigation(@Context
@Path("/{siteType}")
@GET
@Produces(MediaType.APPLICATION_JSON)
@RolesAllowed("users")
@Operation(summary = "Gets navigations of one or multiple site navigations", description = "Gets navigations of one or multiple site navigations", method = "GET")
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Request fulfilled"),
@ApiResponse(responseCode = "400", description = "Invalid query input"),
@ApiResponse(responseCode = "404", description = "Navigation does not exist"),
@ApiResponse(responseCode = "500", description = "Internal server error") })
public Response getSiteTypeNavigations(@Context
HttpServletRequest request,
public Response getSiteTypeNavigations(
@Context
HttpServletRequest request,
@Parameter(description = "Portal site type, possible values: PORTAL, GROUP or USER", required = true)
@PathParam("siteType")
String siteTypeName,
Expand Down Expand Up @@ -186,7 +186,6 @@ public Response getSiteTypeNavigations(@Context
@Path("/categories")
@GET
@Produces(MediaType.APPLICATION_JSON)
@RolesAllowed("users")
@Operation(summary = "Gets navigations categories for UI", description = "Gets navigations categories for UI", method = "GET")
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Request fulfilled"),
@ApiResponse(responseCode = "500", description = "Internal server error"), })
Expand Down

0 comments on commit ef7c755

Please sign in to comment.