1616 **/
1717
1818use App \Security \OrganizationScopes ;
19- use App \Security \SummitScopes ;
2019use App \Services \Model \IOrganizationService ;
2120use Illuminate \Http \Response ;
2221use models \main \IOrganizationRepository ;
@@ -43,10 +42,13 @@ final class OAuth2OrganizationsApiController extends OAuth2ProtectedController
4342 #[OA \Post(
4443 path: '/api/v1/organizations ' ,
4544 summary: 'Creates a new organization ' ,
46- security: [['organizations_oauth2 ' => [
47- OrganizationScopes::WriteOrganizationData
45+ security: [
46+ [
47+ 'organizations_oauth2 ' => [
48+ OrganizationScopes::WriteOrganizationData
49+ ]
4850 ]
49- ]] ,
51+ ],
5052 tags: ['Organizations ' ],
5153 requestBody: new OA \RequestBody (
5254 required: true ,
@@ -75,10 +77,9 @@ final class OAuth2OrganizationsApiController extends OAuth2ProtectedController
7577 public function __construct
7678 (
7779 IOrganizationRepository $ company_repository ,
78- IResourceServerContext $ resource_server_context ,
79- IOrganizationService $ service
80- )
81- {
80+ IResourceServerContext $ resource_server_context ,
81+ IOrganizationService $ service
82+ ) {
8283 parent ::__construct ($ resource_server_context );
8384 $ this ->repository = $ company_repository ;
8485 $ this ->service = $ service ;
@@ -90,17 +91,14 @@ public function __construct
9091 summary: 'Get all organizations ' ,
9192 operationId: 'getAllOrganizations ' ,
9293 tags: ['Organizations ' ],
93- security: [['organizations_oauth2 ' => [
94- OrganizationScopes::ReadOrganizationData,
95- ]]],
94+ security: [
95+ [
96+ 'organizations_oauth2 ' => [
97+ OrganizationScopes::ReadOrganizationData,
98+ ]
99+ ]
100+ ],
96101 parameters: [
97- new OA \Parameter (
98- name: 'access_token ' ,
99- in: 'query ' ,
100- required: false ,
101- description: 'OAuth2 access token (alternative to Authorization: Bearer) ' ,
102- schema: new OA \Schema (type: 'string ' , example: 'eyJhbGciOi... ' )
103- ),
104102 new OA \Parameter (
105103 name: 'page ' ,
106104 in: 'query ' ,
0 commit comments