You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Http/Controllers/Apis/Protected/Main/OAuth2GroupsApiController.php
+75-1Lines changed: 75 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,12 @@
12
12
* limitations under the License.
13
13
**/
14
14
15
+
useApp\Security\SummitScopes;
16
+
useIlluminate\Http\Response;
15
17
usemodels\main\IGroupRepository;
16
18
usemodels\oauth2\IResourceServerContext;
17
19
useModelSerializers\SerializerRegistry;
20
+
useOpenApi\AttributesasOA;
18
21
19
22
/**
20
23
* Class OAuth2GroupsApiController
@@ -40,6 +43,77 @@ public function __construct
40
43
$this->repository = $group_repository;
41
44
}
42
45
46
+
#[OA\Get(
47
+
path: "/api/v1/groups",
48
+
description: "Get all groups with filtering and pagination. Groups are used for access control and organization of members. Requires OAuth2 authentication with appropriate scope.",
49
+
summary: 'Get all groups',
50
+
operationId: 'getAllGroups',
51
+
tags: ['Groups'],
52
+
security: [['summit_rsvp_oauth2' => [
53
+
SummitScopes::ReadAllSummitData,
54
+
]]],
55
+
parameters: [
56
+
newOA\Parameter(
57
+
name: 'access_token',
58
+
in: 'query',
59
+
required: false,
60
+
description: 'OAuth2 access token (alternative to Authorization: Bearer)',
0 commit comments