Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 5fb8306

Browse files
committed
Enhanced Symfony generator
1 parent f92e76a commit 5fb8306

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+955
-50
lines changed

Api/ApiServer.php

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?php
2+
/**
3+
* ApiServer.
4+
*
5+
* PHP version 8.1.1
6+
*
7+
* @category Class
8+
*
9+
* @author OpenAPI Generator team
10+
*
11+
* @see https://github.com/openapitools/openapi-generator
12+
*/
13+
14+
/**
15+
* Catroweb API.
16+
*
17+
* API for the Catrobat Share Platform
18+
*
19+
* The version of the OpenAPI document: v1.1.10
20+
* Contact: [email protected]
21+
* Generated by: https://github.com/openapitools/openapi-generator.git
22+
*/
23+
24+
/**
25+
* NOTE: This class is auto generated by the openapi generator program.
26+
* https://github.com/openapitools/openapi-generator
27+
* Do not edit the class manually.
28+
*/
29+
30+
namespace OpenAPI\Server\Api;
31+
32+
/**
33+
* ApiServer Class Doc Comment.
34+
*
35+
* PHP version 8.1.1
36+
*
37+
* @category Class
38+
*
39+
* @author OpenAPI Generator team
40+
*
41+
* @see https://github.com/openapitools/openapi-generator
42+
*/
43+
class ApiServer
44+
{
45+
private array $apis = [];
46+
47+
/**
48+
* Adds an API handler to the server.
49+
*
50+
* @param string $api An API name of the handle
51+
* @param mixed $handler A handler to set for the given API
52+
*/
53+
public function addApiHandler(string $api, $handler): void
54+
{
55+
if (isset($this->apis[$api])) {
56+
throw new \InvalidArgumentException('API has already a handler: '.$api);
57+
}
58+
59+
$this->apis[$api] = $handler;
60+
}
61+
62+
/**
63+
* Returns an API handler.
64+
*
65+
* @param string $api An API name of the handle
66+
*
67+
* @throws \InvalidArgumentException When no such handler exists
68+
*
69+
* @return mixed Returns a handler
70+
*/
71+
public function getApiHandler(string $api)
72+
{
73+
if (!isset($this->apis[$api])) {
74+
throw new \InvalidArgumentException('No handler for '.$api.' implemented.');
75+
}
76+
77+
return $this->apis[$api];
78+
}
79+
}

Api/AuthenticationApiInterface.php

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?php
2+
/**
3+
* AuthenticationApiInterface.
4+
*
5+
* PHP version 8.1.1
6+
*
7+
* @category Class
8+
*
9+
* @author OpenAPI Generator team
10+
*
11+
* @see https://github.com/openapitools/openapi-generator
12+
*/
13+
14+
/**
15+
* Catroweb API.
16+
*
17+
* API for the Catrobat Share Platform
18+
*
19+
* The version of the OpenAPI document: v1.1.10
20+
* Contact: [email protected]
21+
* Generated by: https://github.com/openapitools/openapi-generator.git
22+
*/
23+
24+
/**
25+
* NOTE: This class is auto generated by the openapi generator program.
26+
* https://github.com/openapitools/openapi-generator
27+
* Do not edit the class manually.
28+
*/
29+
30+
namespace OpenAPI\Server\Api;
31+
32+
use OpenAPI\Server\Model\LoginRequest;
33+
use OpenAPI\Server\Model\OAuthLoginRequest;
34+
use OpenAPI\Server\Model\RefreshRequest;
35+
use OpenAPI\Server\Model\UpgradeTokenRequest;
36+
37+
/**
38+
* AuthenticationApiInterface Interface Doc Comment.
39+
*
40+
* @category Interface
41+
*
42+
* @author OpenAPI Generator team
43+
*
44+
* @see https://github.com/openapitools/openapi-generator
45+
*/
46+
interface AuthenticationApiInterface
47+
{
48+
/**
49+
* Sets authentication method PandaAuth.
50+
*
51+
* @param string|null $value value of the PandaAuth authentication method
52+
*/
53+
public function setPandaAuth(?string $value): void;
54+
55+
/**
56+
* Operation authenticationDelete.
57+
*
58+
* Expires refresh token
59+
*
60+
* @param string $x_refresh Refresh Token (required)
61+
* @param int &$responseCode The HTTP Response Code
62+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
63+
*/
64+
public function authenticationDelete(string $x_refresh, int &$responseCode, array &$responseHeaders): void;
65+
66+
/**
67+
* Operation authenticationGet.
68+
*
69+
* Check token
70+
*
71+
* @param int &$responseCode The HTTP Response Code
72+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
73+
*/
74+
public function authenticationGet(int &$responseCode, array &$responseHeaders): void;
75+
76+
/**
77+
* Operation authenticationOauthPost.
78+
*
79+
* OAuth Login
80+
*
81+
* @param OAuthLoginRequest $o_auth_login_request (required)
82+
* @param int &$responseCode The HTTP Response Code
83+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
84+
*/
85+
public function authenticationOauthPost(OAuthLoginRequest $o_auth_login_request, int &$responseCode, array &$responseHeaders): array|object|null;
86+
87+
/**
88+
* Operation authenticationPost.
89+
*
90+
* Login
91+
*
92+
* @param LoginRequest $login_request (required)
93+
* @param int &$responseCode The HTTP Response Code
94+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
95+
*/
96+
public function authenticationPost(LoginRequest $login_request, int &$responseCode, array &$responseHeaders): array|object|null;
97+
98+
/**
99+
* Operation authenticationRefreshPost.
100+
*
101+
* Refresh token
102+
*
103+
* @param RefreshRequest $refresh_request (required)
104+
* @param int &$responseCode The HTTP Response Code
105+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
106+
*/
107+
public function authenticationRefreshPost(RefreshRequest $refresh_request, int &$responseCode, array &$responseHeaders): array|object|null;
108+
109+
/**
110+
* Operation authenticationUpgradePost.
111+
*
112+
* Upgrade a deprecated token to JWT
113+
*
114+
* @param UpgradeTokenRequest $upgrade_token_request (required)
115+
* @param int &$responseCode The HTTP Response Code
116+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
117+
*/
118+
public function authenticationUpgradePost(UpgradeTokenRequest $upgrade_token_request, int &$responseCode, array &$responseHeaders): array|object|null;
119+
}

Api/MediaLibraryApiInterface.php

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?php
2+
/**
3+
* MediaLibraryApiInterface.
4+
*
5+
* PHP version 8.1.1
6+
*
7+
* @category Class
8+
*
9+
* @author OpenAPI Generator team
10+
*
11+
* @see https://github.com/openapitools/openapi-generator
12+
*/
13+
14+
/**
15+
* Catroweb API.
16+
*
17+
* API for the Catrobat Share Platform
18+
*
19+
* The version of the OpenAPI document: v1.1.10
20+
* Contact: [email protected]
21+
* Generated by: https://github.com/openapitools/openapi-generator.git
22+
*/
23+
24+
/**
25+
* NOTE: This class is auto generated by the openapi generator program.
26+
* https://github.com/openapitools/openapi-generator
27+
* Do not edit the class manually.
28+
*/
29+
30+
namespace OpenAPI\Server\Api;
31+
32+
/**
33+
* MediaLibraryApiInterface Interface Doc Comment.
34+
*
35+
* @category Interface
36+
*
37+
* @author OpenAPI Generator team
38+
*
39+
* @see https://github.com/openapitools/openapi-generator
40+
*/
41+
interface MediaLibraryApiInterface
42+
{
43+
/**
44+
* Operation mediaFileIdGet.
45+
*
46+
* Get the information of a specific media file
47+
*
48+
* @param int $id ID of any given media file (required)
49+
* @param string $attributes (optional, default to '')
50+
* @param int &$responseCode The HTTP Response Code
51+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
52+
*/
53+
public function mediaFileIdGet(int $id, string $attributes, int &$responseCode, array &$responseHeaders): array|object|null;
54+
55+
/**
56+
* Operation mediaFilesGet.
57+
*
58+
* Get *all* content of the media library.
59+
*
60+
* @param int $limit (optional, default to 20)
61+
* @param int $offset (optional, default to 0)
62+
* @param string $attributes (optional, default to '')
63+
* @param string $flavor (optional, default to '')
64+
* @param int &$responseCode The HTTP Response Code
65+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
66+
*/
67+
public function mediaFilesGet(int $limit, int $offset, string $attributes, string $flavor, int &$responseCode, array &$responseHeaders): array|object|null;
68+
69+
/**
70+
* Operation mediaFilesSearchGet.
71+
*
72+
* Search for mediafiles associated with keywords
73+
*
74+
* @param string $query (required)
75+
* @param int $limit (optional, default to 20)
76+
* @param int $offset (optional, default to 0)
77+
* @param string $attributes (optional, default to '')
78+
* @param string $flavor (optional, default to '')
79+
* @param string $package_name In which package you want to search (for more fine tuned results) (optional, default to '')
80+
* @param int &$responseCode The HTTP Response Code
81+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
82+
*/
83+
public function mediaFilesSearchGet(string $query, int $limit, int $offset, string $attributes, string $flavor, string $package_name, int &$responseCode, array &$responseHeaders): array|object|null;
84+
85+
/**
86+
* Operation mediaPackageNameGet.
87+
*
88+
* Get media-library asstes of a named package
89+
*
90+
* @param string $name Name of the package (required)
91+
* @param int $limit (optional, default to 20)
92+
* @param int $offset (optional, default to 0)
93+
* @param string $attributes (optional, default to '')
94+
* @param int &$responseCode The HTTP Response Code
95+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
96+
*/
97+
public function mediaPackageNameGet(string $name, int $limit, int $offset, string $attributes, int &$responseCode, array &$responseHeaders): array|object|null;
98+
}

Api/NotificationsApiInterface.php

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?php
2+
/**
3+
* NotificationsApiInterface.
4+
*
5+
* PHP version 8.1.1
6+
*
7+
* @category Class
8+
*
9+
* @author OpenAPI Generator team
10+
*
11+
* @see https://github.com/openapitools/openapi-generator
12+
*/
13+
14+
/**
15+
* Catroweb API.
16+
*
17+
* API for the Catrobat Share Platform
18+
*
19+
* The version of the OpenAPI document: v1.1.10
20+
* Contact: [email protected]
21+
* Generated by: https://github.com/openapitools/openapi-generator.git
22+
*/
23+
24+
/**
25+
* NOTE: This class is auto generated by the openapi generator program.
26+
* https://github.com/openapitools/openapi-generator
27+
* Do not edit the class manually.
28+
*/
29+
30+
namespace OpenAPI\Server\Api;
31+
32+
/**
33+
* NotificationsApiInterface Interface Doc Comment.
34+
*
35+
* @category Interface
36+
*
37+
* @author OpenAPI Generator team
38+
*
39+
* @see https://github.com/openapitools/openapi-generator
40+
*/
41+
interface NotificationsApiInterface
42+
{
43+
/**
44+
* Sets authentication method PandaAuth.
45+
*
46+
* @param string|null $value value of the PandaAuth authentication method
47+
*/
48+
public function setPandaAuth(?string $value): void;
49+
50+
/**
51+
* Operation notificationIdReadPut.
52+
*
53+
* Mark specified notification as read
54+
*
55+
* @param int $id (required)
56+
* @param string $accept_language (optional, default to 'en')
57+
* @param int &$responseCode The HTTP Response Code
58+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
59+
*/
60+
public function notificationIdReadPut(int $id, string $accept_language, int &$responseCode, array &$responseHeaders): void;
61+
62+
/**
63+
* Operation notificationsCountGet.
64+
*
65+
* Count the number of unseen notifications
66+
*
67+
* @param int &$responseCode The HTTP Response Code
68+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
69+
*/
70+
public function notificationsCountGet(int &$responseCode, array &$responseHeaders): array|object|null;
71+
72+
/**
73+
* Operation notificationsGet.
74+
*
75+
* Get user notifications -- StatusCode: 501 - Not yet implemented
76+
*
77+
* @param string $accept_language (optional, default to 'en')
78+
* @param int $limit (optional, default to 20)
79+
* @param int $offset (optional, default to 0)
80+
* @param string $attributes (optional, default to '')
81+
* @param string $type (optional, default to 'all')
82+
* @param int &$responseCode The HTTP Response Code
83+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
84+
*/
85+
public function notificationsGet(string $accept_language, int $limit, int $offset, string $attributes, string $type, int &$responseCode, array &$responseHeaders): array|object|null;
86+
87+
/**
88+
* Operation notificationsReadPut.
89+
*
90+
* Mark all notifications as read
91+
*
92+
* @param int &$responseCode The HTTP Response Code
93+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
94+
*/
95+
public function notificationsReadPut(int &$responseCode, array &$responseHeaders): void;
96+
}

0 commit comments

Comments
 (0)