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

Commit 8ec1548

Browse files
authored
Merge pull request #41 from Catrobat/create-pull-request/patch-1598337381
Bump autogenerated OpenAPI code
2 parents 38e9600 + 64b13f1 commit 8ec1548

File tree

84 files changed

+2935
-62
lines changed

Some content is hidden

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

84 files changed

+2935
-62
lines changed

.openapi-generator/FILES

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
./Api/ApiServer.php
22
./Api/AuthenticationApiInterface.php
33
./Api/MediaLibraryApiInterface.php
4+
./Api/NotificationsApiInterface.php
45
./Api/ProjectsApiInterface.php
56
./Api/UserApiInterface.php
67
./Api/UtilityApiInterface.php
78
./Controller/AuthenticationController.php
89
./Controller/Controller.php
910
./Controller/MediaLibraryController.php
11+
./Controller/NotificationsController.php
1012
./Controller/ProjectsController.php
1113
./Controller/UserController.php
1214
./Controller/UtilityController.php
@@ -20,7 +22,12 @@
2022
./Model/MediaCategoryResponse.php
2123
./Model/MediaFileResponse.php
2224
./Model/MediaPackageResponse.php
25+
./Model/NotificationContent.php
26+
./Model/NotificationResponse.php
27+
./Model/NotificationsCountResponse.php
28+
./Model/NotificationsType.php
2329
./Model/OAuthLoginRequest.php
30+
./Model/ProjectReportRequest.php
2431
./Model/ProjectResponse.php
2532
./Model/ProjectUploadRequest.php
2633
./Model/RegisterErrorResponse.php
@@ -37,6 +44,7 @@
3744
./Service/ValidatorInterface.php
3845
./Tests/Api/AuthenticationApiInterfaceTest.php
3946
./Tests/Api/MediaLibraryApiInterfaceTest.php
47+
./Tests/Api/NotificationsApiInterfaceTest.php
4048
./Tests/Api/ProjectsApiInterfaceTest.php
4149
./Tests/Api/UserApiInterfaceTest.php
4250
./Tests/Api/UtilityApiInterfaceTest.php
@@ -52,7 +60,12 @@
5260
./Tests/Model/MediaCategoryResponseTest.php
5361
./Tests/Model/MediaFileResponseTest.php
5462
./Tests/Model/MediaPackageResponseTest.php
63+
./Tests/Model/NotificationContentTest.php
64+
./Tests/Model/NotificationResponseTest.php
65+
./Tests/Model/NotificationsCountResponseTest.php
66+
./Tests/Model/NotificationsTypeTest.php
5567
./Tests/Model/OAuthLoginRequestTest.php
68+
./Tests/Model/ProjectReportRequestTest.php
5669
./Tests/Model/ProjectResponseTest.php
5770
./Tests/Model/ProjectUploadRequestTest.php
5871
./Tests/Model/RegisterErrorResponseTest.php
@@ -74,6 +87,7 @@ Resources/config/routing.yml
7487
Resources/config/services.yml
7588
Resources/docs/Api/AuthenticationApiInterface.md
7689
Resources/docs/Api/MediaLibraryApiInterface.md
90+
Resources/docs/Api/NotificationsApiInterface.md
7791
Resources/docs/Api/ProjectsApiInterface.md
7892
Resources/docs/Api/UserApiInterface.md
7993
Resources/docs/Api/UtilityApiInterface.md
@@ -87,7 +101,12 @@ Resources/docs/Model/LoginRequest.md
87101
Resources/docs/Model/MediaCategoryResponse.md
88102
Resources/docs/Model/MediaFileResponse.md
89103
Resources/docs/Model/MediaPackageResponse.md
104+
Resources/docs/Model/NotificationContent.md
105+
Resources/docs/Model/NotificationResponse.md
106+
Resources/docs/Model/NotificationsCountResponse.md
107+
Resources/docs/Model/NotificationsType.md
90108
Resources/docs/Model/OAuthLoginRequest.md
109+
Resources/docs/Model/ProjectReportRequest.md
91110
Resources/docs/Model/ProjectResponse.md
92111
Resources/docs/Model/ProjectUploadRequest.md
93112
Resources/docs/Model/RegisterErrorResponse.md

Api/ApiServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.0.42
19+
* The version of the OpenAPI document: v1.0.43
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/AuthenticationApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.42
18+
* The version of the OpenAPI document: v1.0.43
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Api/MediaLibraryApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.42
18+
* The version of the OpenAPI document: v1.0.43
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Api/NotificationsApiInterface.php

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

Api/ProjectsApiInterface.php

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.42
18+
* The version of the OpenAPI document: v1.0.43
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/
@@ -28,6 +28,7 @@
2828

2929
namespace OpenAPI\Server\Api;
3030

31+
use OpenAPI\Server\Model\ProjectReportRequest;
3132
use Symfony\Component\HttpFoundation\File\UploadedFile;
3233

3334
/**
@@ -61,6 +62,25 @@ public function setPandaAuth($value);
6162
*/
6263
public function projectIdGet(string $id, &$responseCode, array &$responseHeaders);
6364

65+
/**
66+
* Operation projectIdRecommendationsGet.
67+
*
68+
* Get recommended projects related to the specific project
69+
*
70+
* @param string $id (required)
71+
* @param string $category * &#x60;similar&#x60; - Get similar projects to the specific project * &#x60;also downloaded&#x60; - Get projects that users who downloaded the specific project also downloaded * &#x60;more from user&#x60; - Get more projects from the owner of the specific project (required)
72+
* @param string $accept_language (optional)
73+
* @param string $max_version (optional)
74+
* @param int $limit (optional, default to 20)
75+
* @param int $offset (optional, default to 0)
76+
* @param string $flavor (optional)
77+
* @param int $responseCode The HTTP response code to return
78+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
79+
*
80+
* @return OpenAPI\Server\Model\ProjectResponse[]
81+
*/
82+
public function projectIdRecommendationsGet(string $id, string $category, string $accept_language = null, string $max_version = null, int $limit = 20, int $offset = 0, string $flavor = null, &$responseCode, array &$responseHeaders);
83+
6484
/**
6585
* Operation projectsFeaturedGet.
6686
*
@@ -96,6 +116,18 @@ public function projectsFeaturedGet(string $platform = null, string $max_version
96116
*/
97117
public function projectsGet(string $category, string $accept_language = null, string $max_version = null, int $limit = 20, int $offset = 0, string $flavor = null, &$responseCode, array &$responseHeaders);
98118

119+
/**
120+
* Operation projectsIdReportPost.
121+
*
122+
* Report a project
123+
*
124+
* @param string $id (required)
125+
* @param OpenAPI\Server\Model\ProjectReportRequest $project_report_request (required)
126+
* @param int $responseCode The HTTP response code to return
127+
* @param array $responseHeaders Additional HTTP headers to return with the response ()
128+
*/
129+
public function projectsIdReportPost(string $id, ProjectReportRequest $project_report_request, &$responseCode, array &$responseHeaders);
130+
99131
/**
100132
* Operation projectsPost.
101133
*

Api/UserApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.42
18+
* The version of the OpenAPI document: v1.0.43
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Api/UtilityApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* API for the Catrobat Share Platform
1717
*
18-
* The version of the OpenAPI document: v1.0.42
18+
* The version of the OpenAPI document: v1.0.43
1919
* Contact: webmaster@catrobat.org
2020
* Generated by: https://github.com/openapitools/openapi-generator.git
2121
*/

Controller/AuthenticationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.0.42
19+
* The version of the OpenAPI document: v1.0.43
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.0.42
19+
* The version of the OpenAPI document: v1.0.43
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

0 commit comments

Comments
 (0)