Skip to content

Commit

Permalink
🐛 (org): Allow creating Orgs without Login
Browse files Browse the repository at this point in the history
  • Loading branch information
d135-1r43 committed Jan 9, 2025
1 parent 060bafe commit 86e6172
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.util.Map;

@Path("/organization")
@Authenticated
public class OrganizationResource {

private static final Logger LOG = LoggerFactory.getLogger(OrganizationResource.class);
Expand All @@ -56,6 +55,7 @@ public class OrganizationResource {

@GET
@Path("{slug}")
@Authenticated
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Get organization", description = "Retrieves the details of an organization using the unique slug identifier.")
@APIResponse(responseCode = "200", description = "Organization retrieved successfully", content = @Content(mediaType = MediaType.APPLICATION_JSON, schema = @Schema(implementation = Organization.class)))
Expand All @@ -71,6 +71,7 @@ public Response getOrganizationBySlug(@PathParam("slug") String slug) {

@GET
@Path("/my")
@Authenticated
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Get my organization", description = "Retrieves the details of an organization the current user is assigned to.")
@APIResponse(responseCode = "200", description = "Own organization retrieved successfully", content = @Content(mediaType = MediaType.APPLICATION_JSON, schema = @Schema(implementation = Organization.class)))
Expand All @@ -94,6 +95,7 @@ public Organization getMyOrganization(@Context SecurityContext securityContext)

@GET
@Path("{slug}/members")
@Authenticated
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Get organization members", description = "Retrieves the members of an organization using the unique slug identifier.")
@APIResponse(responseCode = "200", description = "Members retrieved successfully", content = @Content(mediaType = MediaType.APPLICATION_JSON, schema = @Schema(implementation = Member[].class)))
Expand Down

0 comments on commit 86e6172

Please sign in to comment.