From ff7e202e36f7e3d9c8c9f109b95801d5e021e488 Mon Sep 17 00:00:00 2001 From: dmetzner Date: Tue, 31 May 2022 19:25:33 +0000 Subject: [PATCH] Automated Code Generation --- .openapi-generator/FILES | 12 + Api/ApiServer.php | 2 +- Api/AuthenticationApiInterface.php | 2 +- Api/MediaLibraryApiInterface.php | 22 +- Api/NotificationsApiInterface.php | 11 +- Api/ProjectsApiInterface.php | 38 ++- Api/SearchApiInterface.php | 4 +- Api/UserApiInterface.php | 5 +- Api/UtilityApiInterface.php | 2 +- Controller/AuthenticationController.php | 2 +- Controller/Controller.php | 2 +- Controller/MediaLibraryController.php | 62 +++-- Controller/NotificationsController.php | 25 +- Controller/ProjectsController.php | 204 ++++++++++++++++- Controller/SearchController.php | 4 +- Controller/UserController.php | 13 +- Controller/UtilityController.php | 2 +- .../Compiler/OpenAPIServerApiPass.php | 2 +- .../OpenAPIServerExtension.php | 2 +- Model/BaseUser.php | 101 +++++++- Model/BasicUserDataResponse.php | 101 +++++++- Model/DryRun.php | 2 +- Model/ExtendedUserDataResponse.php | 101 +++++++- Model/ExtendedUserDataResponseAllOf.php | 2 +- Model/ExtensionResponse.php | 2 +- Model/FeaturedProjectResponse.php | 2 +- Model/JWTResponse.php | 2 +- Model/LoginRequest.php | 2 +- Model/MediaCategoryResponse.php | 2 +- Model/MediaFileResponse.php | 69 +++++- Model/MediaPackageResponse.php | 2 +- Model/NotificationContent.php | 2 +- Model/NotificationResponse.php | 2 +- Model/NotificationsCountResponse.php | 2 +- Model/NotificationsType.php | 2 +- Model/OAuthLoginRequest.php | 2 +- Model/ProjectReportRequest.php | 2 +- Model/ProjectResponse.php | 78 ++++++- Model/ProjectsCategory.php | 2 +- Model/RefreshRequest.php | 2 +- Model/RegisterErrorResponse.php | 2 +- Model/RegisterRequest.php | 101 +++++++- Model/ResetPasswordErrorResponse.php | 2 +- Model/ResetPasswordRequest.php | 2 +- Model/SearchResponse.php | 2 +- Model/SurveyResponse.php | 2 +- Model/TagResponse.php | 2 +- Model/UpdateProjectErrorResponse.php | 171 ++++++++++++++ Model/UpdateProjectFailureResponse.php | 81 +++++++ Model/UpdateProjectRequest.php | 216 ++++++++++++++++++ Model/UpdateUserErrorResponse.php | 62 ++++- Model/UpdateUserRequest.php | 134 ++++++++++- Model/UpdateUserRequestAllOf.php | 84 +++++++ Model/UpgradeTokenRequest.php | 2 +- Model/UploadErrorResponse.php | 2 +- OpenAPIServerBundle.php | 2 +- README.md | 17 +- Resources/config/routing.yml | 8 + .../docs/Api/MediaLibraryApiInterface.md | 22 +- .../docs/Api/NotificationsApiInterface.md | 17 +- Resources/docs/Api/ProjectsApiInterface.md | 91 ++++++-- Resources/docs/Api/SearchApiInterface.md | 4 +- Resources/docs/Api/UserApiInterface.md | 5 +- Resources/docs/Model/BaseUser.md | 3 + Resources/docs/Model/BasicUserDataResponse.md | 3 + .../docs/Model/ExtendedUserDataResponse.md | 3 + Resources/docs/Model/MediaFileResponse.md | 2 + Resources/docs/Model/ProjectResponse.md | 4 +- Resources/docs/Model/RegisterRequest.md | 3 + .../docs/Model/UpdateProjectErrorResponse.md | 13 ++ .../Model/UpdateProjectFailureResponse.md | 10 + Resources/docs/Model/UpdateProjectRequest.md | 14 ++ .../docs/Model/UpdateUserErrorResponse.md | 2 + Resources/docs/Model/UpdateUserRequest.md | 4 + .../docs/Model/UpdateUserRequestAllOf.md | 10 + autoload.php | 2 +- openapitools.json | 2 +- package.json | 2 +- 78 files changed, 1855 insertions(+), 151 deletions(-) create mode 100755 Model/UpdateProjectErrorResponse.php create mode 100755 Model/UpdateProjectFailureResponse.php create mode 100755 Model/UpdateProjectRequest.php create mode 100755 Model/UpdateUserRequestAllOf.php create mode 100755 Resources/docs/Model/UpdateProjectErrorResponse.md create mode 100755 Resources/docs/Model/UpdateProjectFailureResponse.md create mode 100755 Resources/docs/Model/UpdateProjectRequest.md create mode 100755 Resources/docs/Model/UpdateUserRequestAllOf.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index cbbfa9be..39aca20b 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -47,8 +47,12 @@ Model/ResetPasswordRequest.php Model/SearchResponse.php Model/SurveyResponse.php Model/TagResponse.php +Model/UpdateProjectErrorResponse.php +Model/UpdateProjectFailureResponse.php +Model/UpdateProjectRequest.php Model/UpdateUserErrorResponse.php Model/UpdateUserRequest.php +Model/UpdateUserRequestAllOf.php Model/UpgradeTokenRequest.php Model/UploadErrorResponse.php OpenAPIServerBundle.php @@ -90,8 +94,12 @@ Resources/docs/Model/ResetPasswordRequest.md Resources/docs/Model/SearchResponse.md Resources/docs/Model/SurveyResponse.md Resources/docs/Model/TagResponse.md +Resources/docs/Model/UpdateProjectErrorResponse.md +Resources/docs/Model/UpdateProjectFailureResponse.md +Resources/docs/Model/UpdateProjectRequest.md Resources/docs/Model/UpdateUserErrorResponse.md Resources/docs/Model/UpdateUserRequest.md +Resources/docs/Model/UpdateUserRequestAllOf.md Resources/docs/Model/UpgradeTokenRequest.md Resources/docs/Model/UploadErrorResponse.md Service/JmsSerializer.php @@ -137,7 +145,11 @@ Tests/Model/ResetPasswordRequestTest.php Tests/Model/SearchResponseTest.php Tests/Model/SurveyResponseTest.php Tests/Model/TagResponseTest.php +Tests/Model/UpdateProjectErrorResponseTest.php +Tests/Model/UpdateProjectFailureResponseTest.php +Tests/Model/UpdateProjectRequestTest.php Tests/Model/UpdateUserErrorResponseTest.php +Tests/Model/UpdateUserRequestAllOfTest.php Tests/Model/UpdateUserRequestTest.php Tests/Model/UpgradeTokenRequestTest.php Tests/Model/UploadErrorResponseTest.php diff --git a/Api/ApiServer.php b/Api/ApiServer.php index 2ee5009c..8bded9e6 100755 --- a/Api/ApiServer.php +++ b/Api/ApiServer.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/AuthenticationApiInterface.php b/Api/AuthenticationApiInterface.php index af867f5c..853e2a60 100755 --- a/Api/AuthenticationApiInterface.php +++ b/Api/AuthenticationApiInterface.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/MediaLibraryApiInterface.php b/Api/MediaLibraryApiInterface.php index efe02296..c5636788 100755 --- a/Api/MediaLibraryApiInterface.php +++ b/Api/MediaLibraryApiInterface.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,13 +44,14 @@ interface MediaLibraryApiInterface * * Get the information of a specific media file * - * @param \int $id ID of any given media file (required) - * @param \int $responseCode The HTTP response code to return - * @param \array $responseHeaders Additional HTTP headers to return with the response () + * @param \int $id ID of any given media file (required) + * @param \string $attributes (optional) + * @param \int $responseCode The HTTP response code to return + * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\MediaFileResponse */ - public function mediaFileIdGet(int $id, &$responseCode, array &$responseHeaders); + public function mediaFileIdGet(int $id, string $attributes = null, &$responseCode, array &$responseHeaders); /** * Operation mediaFilesGet. @@ -59,13 +60,14 @@ public function mediaFileIdGet(int $id, &$responseCode, array &$responseHeaders) * * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \string $flavor (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\MediaFileResponse[] */ - public function mediaFilesGet(int $limit = 20, int $offset = 0, string $flavor = null, &$responseCode, array &$responseHeaders); + public function mediaFilesGet(int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders); /** * Operation mediaFilesSearchGet. @@ -73,16 +75,17 @@ public function mediaFilesGet(int $limit = 20, int $offset = 0, string $flavor = * Search for mediafiles associated with keywords * * @param \string $query (required) - * @param \string $flavor (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) + * @param \string $flavor (optional) * @param \string $package_name In which package you want to search (for more fine tuned results) (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\MediaFileResponse[] */ - public function mediaFilesSearchGet(string $query, string $flavor = null, int $limit = 20, int $offset = 0, string $package_name = null, &$responseCode, array &$responseHeaders); + public function mediaFilesSearchGet(string $query, int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, string $package_name = null, &$responseCode, array &$responseHeaders); /** * Operation mediaPackageNameGet. @@ -92,10 +95,11 @@ public function mediaFilesSearchGet(string $query, string $flavor = null, int $l * @param \string $name Name of the package (required) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\MediaFileResponse[] */ - public function mediaPackageNameGet(string $name, int $limit = 20, int $offset = 0, &$responseCode, array &$responseHeaders); + public function mediaPackageNameGet(string $name, int $limit = 20, int $offset = 0, string $attributes = null, &$responseCode, array &$responseHeaders); } diff --git a/Api/NotificationsApiInterface.php b/Api/NotificationsApiInterface.php index cf6eccc0..5d58c42b 100755 --- a/Api/NotificationsApiInterface.php +++ b/Api/NotificationsApiInterface.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -51,7 +51,7 @@ public function setPandaAuth($value); /** * Operation notificationIdReadPut. * - * Mark specified notification as read - StatusCode: 501 - Not yet implemented + * Mark specified notification as read * * @param \int $id (required) * @param \string $accept_language (optional) @@ -63,7 +63,7 @@ public function notificationIdReadPut(int $id, string $accept_language = null, & /** * Operation notificationsCountGet. * - * Count the number of unseen notifications -- StatusCode: 501 - Not yet implemented + * Count the number of unseen notifications * * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () @@ -80,18 +80,19 @@ public function notificationsCountGet(&$responseCode, array &$responseHeaders); * @param \string $accept_language (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \OpenAPI\Server\Model\NotificationsType $type (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\NotificationResponse[] */ - public function notificationsGet(string $accept_language = null, int $limit = 20, int $offset = 0, NotificationsType $type = null, &$responseCode, array &$responseHeaders); + public function notificationsGet(string $accept_language = null, int $limit = 20, int $offset = 0, string $attributes = null, NotificationsType $type = null, &$responseCode, array &$responseHeaders); /** * Operation notificationsReadPut. * - * Mark all notifications as read -- StatusCode: 501 - Not yet implemented + * Mark all notifications as read * * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () diff --git a/Api/ProjectsApiInterface.php b/Api/ProjectsApiInterface.php index 4b2271e9..c80c4fc1 100755 --- a/Api/ProjectsApiInterface.php +++ b/Api/ProjectsApiInterface.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,6 +29,7 @@ namespace OpenAPI\Server\Api; use OpenAPI\Server\Model\ProjectReportRequest; +use OpenAPI\Server\Model\UpdateProjectRequest; use Symfony\Component\HttpFoundation\File\UploadedFile; /** @@ -65,7 +66,7 @@ public function projectIdCatrobatGet(string $id, &$responseCode, array &$respons /** * Operation projectIdDelete. * - * Delete a project -- StatusCode: 501 - Not yet implemented + * Delete a project * * @param \string $id (required) * @param \int $responseCode The HTTP response code to return @@ -86,6 +87,21 @@ public function projectIdDelete(string $id, &$responseCode, array &$responseHead */ public function projectIdGet(string $id, &$responseCode, array &$responseHeaders); + /** + * Operation projectIdPut. + * + * Update details of a project + * + * @param \string $id (required) + * @param \OpenAPI\Server\Model\UpdateProjectRequest $update_project_request (required) + * @param \string $accept_language (optional) + * @param \int $responseCode The HTTP response code to return + * @param \array $responseHeaders Additional HTTP headers to return with the response () + * + * @return \array + */ + public function projectIdPut(string $id, UpdateProjectRequest $update_project_request, string $accept_language = null, &$responseCode, array &$responseHeaders); + /** * Operation projectIdRecommendationsGet. * @@ -97,13 +113,14 @@ public function projectIdGet(string $id, &$responseCode, array &$responseHeaders * @param \string $max_version Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \string $flavor (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\ProjectResponse[] */ - 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); + public function projectIdRecommendationsGet(string $id, string $category, string $accept_language = null, string $max_version = null, int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders); /** * Operation projectIdReportPost. @@ -154,13 +171,14 @@ public function projectsExtensionsGet(string $accept_language = null, &$response * @param \string $max_version Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \string $flavor (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\FeaturedProjectResponse[] */ - public function projectsFeaturedGet(string $platform = null, string $max_version = null, int $limit = 20, int $offset = 0, string $flavor = null, &$responseCode, array &$responseHeaders); + public function projectsFeaturedGet(string $platform = null, string $max_version = null, int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders); /** * Operation projectsGet. @@ -172,13 +190,14 @@ public function projectsFeaturedGet(string $platform = null, string $max_version * @param \string $max_version Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \string $flavor (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\ProjectResponse[] */ - 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); + public function projectsGet(string $category, string $accept_language = null, string $max_version = null, int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders); /** * Operation projectsPost. @@ -206,13 +225,14 @@ public function projectsPost(string $checksum, UploadedFile $file, string $accep * @param \string $max_version Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \string $flavor (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\ProjectResponse[] */ - public function projectsSearchGet(string $query, string $max_version = null, int $limit = 20, int $offset = 0, string $flavor = null, &$responseCode, array &$responseHeaders); + public function projectsSearchGet(string $query, string $max_version = null, int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders); /** * Operation projectsTagsGet. @@ -235,13 +255,14 @@ public function projectsTagsGet(string $accept_language = null, &$responseCode, * @param \string $max_version Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \string $flavor (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\ProjectResponse[] */ - public function projectsUserGet(string $max_version = null, int $limit = 20, int $offset = 0, string $flavor = null, &$responseCode, array &$responseHeaders); + public function projectsUserGet(string $max_version = null, int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders); /** * Operation projectsUserIdGet. @@ -252,11 +273,12 @@ public function projectsUserGet(string $max_version = null, int $limit = 20, int * @param \string $max_version Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' (optional) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \string $flavor (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\ProjectResponse[] */ - public function projectsUserIdGet(string $id, string $max_version = null, int $limit = 20, int $offset = 0, string $flavor = null, &$responseCode, array &$responseHeaders); + public function projectsUserIdGet(string $id, string $max_version = null, int $limit = 20, int $offset = 0, string $attributes = null, string $flavor = null, &$responseCode, array &$responseHeaders); } diff --git a/Api/SearchApiInterface.php b/Api/SearchApiInterface.php index 5ff1bd7a..2b1b5a0b 100755 --- a/Api/SearchApiInterface.php +++ b/Api/SearchApiInterface.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,7 +42,7 @@ interface SearchApiInterface /** * Operation searchGet. * - * Search for projects, users,.. -- StatusCode: 501 - Not yet implemented + * Search for projects, users,.. * * @param \string $query (required) * @param \string $type (optional) diff --git a/Api/UserApiInterface.php b/Api/UserApiInterface.php index 7e9be218..1d706f0e 100755 --- a/Api/UserApiInterface.php +++ b/Api/UserApiInterface.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -135,10 +135,11 @@ public function userResetPasswordPost(ResetPasswordRequest $reset_password_reque * @param \string $query (required) * @param \int $limit (optional, default to 20) * @param \int $offset (optional, default to 0) + * @param \string $attributes (optional) * @param \int $responseCode The HTTP response code to return * @param \array $responseHeaders Additional HTTP headers to return with the response () * * @return \OpenAPI\Server\Model\BasicUserDataResponse[] */ - public function usersSearchGet(string $query, int $limit = 20, int $offset = 0, &$responseCode, array &$responseHeaders); + public function usersSearchGet(string $query, int $limit = 20, int $offset = 0, string $attributes = null, &$responseCode, array &$responseHeaders); } diff --git a/Api/UtilityApiInterface.php b/Api/UtilityApiInterface.php index 56c58858..b57ace63 100755 --- a/Api/UtilityApiInterface.php +++ b/Api/UtilityApiInterface.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Controller/AuthenticationController.php b/Controller/AuthenticationController.php index c90e14c2..c53d3091 100755 --- a/Controller/AuthenticationController.php +++ b/Controller/AuthenticationController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Controller/Controller.php b/Controller/Controller.php index fd4dd712..f2005920 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Controller/MediaLibraryController.php b/Controller/MediaLibraryController.php index 2e3c6d11..af996a98 100755 --- a/Controller/MediaLibraryController.php +++ b/Controller/MediaLibraryController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -72,12 +72,14 @@ public function mediaFileIdGetAction(Request $request, $id) // Handle authentication // Read out all input parameter values into variables + $attributes = $request->query->get('attributes'); // Use the default value if no value was provided // Deserialize the input values that needs it try { $id = $this->deserialize($id, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); } @@ -90,6 +92,13 @@ public function mediaFileIdGetAction(Request $request, $id) if ($response instanceof Response) { return $response; } + $asserts = []; + $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } try { $handler = $this->getApiHandler(); @@ -97,7 +106,7 @@ public function mediaFileIdGetAction(Request $request, $id) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->mediaFileIdGet($id, $responseCode, $responseHeaders); + $result = $handler->mediaFileIdGet($id, $attributes, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -159,6 +168,7 @@ public function mediaFilesGetAction(Request $request) // Read out all input parameter values into variables $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $flavor = $request->query->get('flavor'); // Use the default value if no value was provided @@ -167,6 +177,7 @@ public function mediaFilesGetAction(Request $request) try { $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $flavor = $this->deserialize($flavor, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -189,6 +200,13 @@ public function mediaFilesGetAction(Request $request) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($flavor, $asserts); if ($response instanceof Response) { return $response; @@ -200,7 +218,7 @@ public function mediaFilesGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->mediaFilesGet($limit, $offset, $flavor, $responseCode, $responseHeaders); + $result = $handler->mediaFilesGet($limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -258,9 +276,10 @@ public function mediaFilesSearchGetAction(Request $request) // Read out all input parameter values into variables $query = $request->query->get('query'); - $flavor = $request->query->get('flavor'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); + $flavor = $request->query->get('flavor'); $package_name = $request->query->get('package_name'); // Use the default value if no value was provided @@ -268,9 +287,10 @@ public function mediaFilesSearchGetAction(Request $request) // Deserialize the input values that needs it try { $query = $this->deserialize($query, 'string', 'string'); - $flavor = $this->deserialize($flavor, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); + $flavor = $this->deserialize($flavor, 'string', 'string'); $package_name = $this->deserialize($package_name, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -285,12 +305,6 @@ public function mediaFilesSearchGetAction(Request $request) return $response; } $asserts = []; - $asserts[] = new Assert\Type('string'); - $response = $this->validate($flavor, $asserts); - if ($response instanceof Response) { - return $response; - } - $asserts = []; $asserts[] = new Assert\Type('int'); $asserts[] = new Assert\GreaterThanOrEqual(0); $response = $this->validate($limit, $asserts); @@ -306,6 +320,19 @@ public function mediaFilesSearchGetAction(Request $request) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); + $response = $this->validate($flavor, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($package_name, $asserts); if ($response instanceof Response) { return $response; @@ -317,7 +344,7 @@ public function mediaFilesSearchGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->mediaFilesSearchGet($query, $flavor, $limit, $offset, $package_name, $responseCode, $responseHeaders); + $result = $handler->mediaFilesSearchGet($query, $limit, $offset, $attributes, $flavor, $package_name, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -377,6 +404,7 @@ public function mediaPackageNameGetAction(Request $request, $name) // Read out all input parameter values into variables $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); // Use the default value if no value was provided @@ -385,6 +413,7 @@ public function mediaPackageNameGetAction(Request $request, $name) $name = $this->deserialize($name, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); } @@ -412,6 +441,13 @@ public function mediaPackageNameGetAction(Request $request, $name) if ($response instanceof Response) { return $response; } + $asserts = []; + $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } try { $handler = $this->getApiHandler(); @@ -419,7 +455,7 @@ public function mediaPackageNameGetAction(Request $request, $name) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->mediaPackageNameGet($name, $limit, $offset, $responseCode, $responseHeaders); + $result = $handler->mediaPackageNameGet($name, $limit, $offset, $attributes, $responseCode, $responseHeaders); // Find default response message $message = ''; diff --git a/Controller/NotificationsController.php b/Controller/NotificationsController.php index 9db511c7..c819a072 100755 --- a/Controller/NotificationsController.php +++ b/Controller/NotificationsController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -51,7 +51,7 @@ class NotificationsController extends Controller /** * Operation notificationIdReadPut. * - * Mark specified notification as read - StatusCode: 501 - Not yet implemented + * Mark specified notification as read * * @param Request $request the Symfony request to handle * @param mixed $id @@ -139,7 +139,7 @@ public function notificationIdReadPutAction(Request $request, $id) /** * Operation notificationsCountGet. * - * Count the number of unseen notifications -- StatusCode: 501 - Not yet implemented + * Count the number of unseen notifications * * @param Request $request the Symfony request to handle * @@ -189,6 +189,9 @@ public function notificationsCountGetAction(Request $request) case 401: $message = 'Invalid JWT token | JWT token not found | JWT token expired'; break; + case 403: + $message = 'Insufficient privileges, action not allowed.'; + break; } return new Response( @@ -235,6 +238,7 @@ public function notificationsGetAction(Request $request) // Read out all input parameter values into variables $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $type = $request->query->get('type'); $accept_language = $request->headers->get('Accept-Language'); @@ -245,6 +249,7 @@ public function notificationsGetAction(Request $request) $accept_language = $this->deserialize($accept_language, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $type = $this->deserialize($type, 'OpenAPI\Server\Model\NotificationsType', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -272,6 +277,13 @@ public function notificationsGetAction(Request $request) return $response; } $asserts = []; + $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\NotificationsType'); $asserts[] = new Assert\Valid(); $response = $this->validate($type, $asserts); @@ -288,7 +300,7 @@ public function notificationsGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->notificationsGet($accept_language, $limit, $offset, $type, $responseCode, $responseHeaders); + $result = $handler->notificationsGet($accept_language, $limit, $offset, $attributes, $type, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -325,7 +337,7 @@ public function notificationsGetAction(Request $request) /** * Operation notificationsReadPut. * - * Mark all notifications as read -- StatusCode: 501 - Not yet implemented + * Mark all notifications as read * * @param Request $request the Symfony request to handle * @@ -366,6 +378,9 @@ public function notificationsReadPutAction(Request $request) case 401: $message = 'Invalid JWT token | JWT token not found | JWT token expired'; break; + case 403: + $message = 'Insufficient privileges, action not allowed.'; + break; case 404: $message = 'Not found'; break; diff --git a/Controller/ProjectsController.php b/Controller/ProjectsController.php index f8d5dcef..6dc329ef 100755 --- a/Controller/ProjectsController.php +++ b/Controller/ProjectsController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -138,7 +138,7 @@ public function projectIdCatrobatGetAction(Request $request, $id) /** * Operation projectIdDelete. * - * Delete a project -- StatusCode: 501 - Not yet implemented + * Delete a project * * @param Request $request the Symfony request to handle * @param mixed $id @@ -308,6 +308,134 @@ public function projectIdGetAction(Request $request, $id) } } + /** + * Operation projectIdPut. + * + * Update details of a project + * + * @param Request $request the Symfony request to handle + * @param mixed $id + * + * @return Response the Symfony response + */ + public function projectIdPutAction(Request $request, $id) + { + // Make sure that the client is providing something that we can consume + $consumes = ['application/json']; + if (!static::isContentTypeAllowed($request, $consumes)) { + // We can't consume the content that the client is sending us + return new Response('', 415); + } + + // Figure out what data format to return to the client + $produces = ['application/json']; + // Figure out what the client accepts + $clientAccepts = $request->headers->has('Accept') ? $request->headers->get('Accept') : '*/*'; + $responseFormat = $this->getOutputFormat($clientAccepts, $produces); + if (null === $responseFormat) { + return new Response('', 406); + } + + // Handle authentication + // Authentication 'PandaAuth' required + // HTTP basic authentication required + $securityPandaAuth = $request->headers->get('authorization'); + + // Read out all input parameter values into variables + $accept_language = $request->headers->get('Accept-Language'); + $update_project_request = $request->getContent(); + + // Use the default value if no value was provided + + // Deserialize the input values that needs it + try { + $id = $this->deserialize($id, 'string', 'string'); + $inputFormat = $request->getMimeType($request->getContentType()); + $update_project_request = $this->deserialize($update_project_request, 'OpenAPI\Server\Model\UpdateProjectRequest', $inputFormat); + $accept_language = $this->deserialize($accept_language, 'string', 'string'); + } catch (SerializerRuntimeException $exception) { + return $this->createBadRequestResponse($exception->getMessage()); + } + + // Validate the input values + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/'); + $response = $this->validate($id, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\NotNull(); + $asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\UpdateProjectRequest'); + $asserts[] = new Assert\Valid(); + $response = $this->validate($update_project_request, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); + $response = $this->validate($accept_language, $asserts); + if ($response instanceof Response) { + return $response; + } + + try { + $handler = $this->getApiHandler(); + + // Set authentication method 'PandaAuth' + $handler->setPandaAuth($securityPandaAuth); + + // Make the call to the business logic + $responseCode = 200; + $responseHeaders = []; + $result = $handler->projectIdPut($id, $update_project_request, $accept_language, $responseCode, $responseHeaders); + + // Find default response message + $message = ''; + + // Find a more specific message, if available + switch ($responseCode) { + case 204: + $message = 'Project successfully updated'; + break; + case 401: + $message = 'Invalid credentials'; + break; + case 403: + $message = 'Insufficient privileges, action not allowed.'; + break; + case 404: + $message = 'Not found'; + break; + case 406: + $message = 'Not acceptable - client must accept application/json as content type'; + break; + case 422: + $message = 'Unprocessable Entity. (Specific error messages will be translated to the locale)'; + break; + case 500: + $message = 'Server error'; + break; + } + + return new Response( + null !== $result ? $this->serialize($result, $responseFormat) : '', + $responseCode, + array_merge( + $responseHeaders, + [ + 'Content-Type' => $responseFormat, + 'X-OpenAPI-Message' => $message, + ] + ) + ); + } catch (Exception $fallthrough) { + return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); + } + } + /** * Operation projectIdRecommendationsGet. * @@ -336,6 +464,7 @@ public function projectIdRecommendationsGetAction(Request $request, $id) $max_version = $request->query->get('max_version'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $flavor = $request->query->get('flavor'); $accept_language = $request->headers->get('Accept-Language'); @@ -349,6 +478,7 @@ public function projectIdRecommendationsGetAction(Request $request, $id) $max_version = $this->deserialize($max_version, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $flavor = $this->deserialize($flavor, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -399,6 +529,13 @@ public function projectIdRecommendationsGetAction(Request $request, $id) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($flavor, $asserts); if ($response instanceof Response) { return $response; @@ -410,7 +547,7 @@ public function projectIdRecommendationsGetAction(Request $request, $id) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $flavor, $responseCode, $responseHeaders); + $result = $handler->projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -752,6 +889,7 @@ public function projectsFeaturedGetAction(Request $request) $max_version = $request->query->get('max_version'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $flavor = $request->query->get('flavor'); // Use the default value if no value was provided @@ -762,6 +900,7 @@ public function projectsFeaturedGetAction(Request $request) $max_version = $this->deserialize($max_version, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $flavor = $this->deserialize($flavor, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -797,6 +936,13 @@ public function projectsFeaturedGetAction(Request $request) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($flavor, $asserts); if ($response instanceof Response) { return $response; @@ -808,7 +954,7 @@ public function projectsFeaturedGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->projectsFeaturedGet($platform, $max_version, $limit, $offset, $flavor, $responseCode, $responseHeaders); + $result = $handler->projectsFeaturedGet($platform, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -869,6 +1015,7 @@ public function projectsGetAction(Request $request) $max_version = $request->query->get('max_version'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $flavor = $request->query->get('flavor'); $accept_language = $request->headers->get('Accept-Language'); @@ -881,6 +1028,7 @@ public function projectsGetAction(Request $request) $max_version = $this->deserialize($max_version, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $flavor = $this->deserialize($flavor, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -923,6 +1071,13 @@ public function projectsGetAction(Request $request) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($flavor, $asserts); if ($response instanceof Response) { return $response; @@ -934,7 +1089,7 @@ public function projectsGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->projectsGet($category, $accept_language, $max_version, $limit, $offset, $flavor, $responseCode, $responseHeaders); + $result = $handler->projectsGet($category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -1071,6 +1226,9 @@ public function projectsPostAction(Request $request) case 401: $message = 'Invalid JWT token | JWT token not found | JWT token expired'; break; + case 403: + $message = 'Insufficient privileges, action not allowed.'; + break; case 406: $message = 'Not acceptable - client must accept application/json as content type'; break; @@ -1122,6 +1280,7 @@ public function projectsSearchGetAction(Request $request) $max_version = $request->query->get('max_version'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $flavor = $request->query->get('flavor'); // Use the default value if no value was provided @@ -1132,6 +1291,7 @@ public function projectsSearchGetAction(Request $request) $max_version = $this->deserialize($max_version, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $flavor = $this->deserialize($flavor, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -1167,6 +1327,13 @@ public function projectsSearchGetAction(Request $request) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($flavor, $asserts); if ($response instanceof Response) { return $response; @@ -1178,7 +1345,7 @@ public function projectsSearchGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->projectsSearchGet($query, $max_version, $limit, $offset, $flavor, $responseCode, $responseHeaders); + $result = $handler->projectsSearchGet($query, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -1320,6 +1487,7 @@ public function projectsUserGetAction(Request $request) $max_version = $request->query->get('max_version'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $flavor = $request->query->get('flavor'); // Use the default value if no value was provided @@ -1329,6 +1497,7 @@ public function projectsUserGetAction(Request $request) $max_version = $this->deserialize($max_version, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $flavor = $this->deserialize($flavor, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -1357,6 +1526,13 @@ public function projectsUserGetAction(Request $request) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($flavor, $asserts); if ($response instanceof Response) { return $response; @@ -1371,7 +1547,7 @@ public function projectsUserGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->projectsUserGet($max_version, $limit, $offset, $flavor, $responseCode, $responseHeaders); + $result = $handler->projectsUserGet($max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -1387,6 +1563,9 @@ public function projectsUserGetAction(Request $request) case 401: $message = 'Invalid JWT token | JWT token not found | JWT token expired'; break; + case 403: + $message = 'Insufficient privileges, action not allowed.'; + break; case 406: $message = 'Not acceptable - client must accept application/json as content type'; break; @@ -1435,6 +1614,7 @@ public function projectsUserIdGetAction(Request $request, $id) $max_version = $request->query->get('max_version'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); $flavor = $request->query->get('flavor'); // Use the default value if no value was provided @@ -1445,6 +1625,7 @@ public function projectsUserIdGetAction(Request $request, $id) $max_version = $this->deserialize($max_version, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); $flavor = $this->deserialize($flavor, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); @@ -1481,6 +1662,13 @@ public function projectsUserIdGetAction(Request $request, $id) } $asserts = []; $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } + $asserts = []; + $asserts[] = new Assert\Type('string'); $response = $this->validate($flavor, $asserts); if ($response instanceof Response) { return $response; @@ -1492,7 +1680,7 @@ public function projectsUserIdGetAction(Request $request, $id) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->projectsUserIdGet($id, $max_version, $limit, $offset, $flavor, $responseCode, $responseHeaders); + $result = $handler->projectsUserIdGet($id, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); // Find default response message $message = ''; diff --git a/Controller/SearchController.php b/Controller/SearchController.php index 0facf9ad..e3b6102b 100755 --- a/Controller/SearchController.php +++ b/Controller/SearchController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -51,7 +51,7 @@ class SearchController extends Controller /** * Operation searchGet. * - * Search for projects, users,.. -- StatusCode: 501 - Not yet implemented + * Search for projects, users,.. * * @param Request $request the Symfony request to handle * diff --git a/Controller/UserController.php b/Controller/UserController.php index 4de59685..aa2a1d08 100755 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -620,6 +620,7 @@ public function usersSearchGetAction(Request $request) $query = $request->query->get('query'); $limit = $request->query->get('limit'); $offset = $request->query->get('offset'); + $attributes = $request->query->get('attributes'); // Use the default value if no value was provided @@ -628,6 +629,7 @@ public function usersSearchGetAction(Request $request) $query = $this->deserialize($query, 'string', 'string'); $limit = $this->deserialize($limit, 'int', 'string'); $offset = $this->deserialize($offset, 'int', 'string'); + $attributes = $this->deserialize($attributes, 'string', 'string'); } catch (SerializerRuntimeException $exception) { return $this->createBadRequestResponse($exception->getMessage()); } @@ -654,6 +656,13 @@ public function usersSearchGetAction(Request $request) if ($response instanceof Response) { return $response; } + $asserts = []; + $asserts[] = new Assert\Type('string'); + $asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-_]+(,[a-zA-Z0-9\\-_]+)*$/'); + $response = $this->validate($attributes, $asserts); + if ($response instanceof Response) { + return $response; + } try { $handler = $this->getApiHandler(); @@ -661,7 +670,7 @@ public function usersSearchGetAction(Request $request) // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->usersSearchGet($query, $limit, $offset, $responseCode, $responseHeaders); + $result = $handler->usersSearchGet($query, $limit, $offset, $attributes, $responseCode, $responseHeaders); // Find default response message $message = ''; diff --git a/Controller/UtilityController.php b/Controller/UtilityController.php index a6a30f58..de8f1c56 100755 --- a/Controller/UtilityController.php +++ b/Controller/UtilityController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/DependencyInjection/Compiler/OpenAPIServerApiPass.php b/DependencyInjection/Compiler/OpenAPIServerApiPass.php index 8df5c404..b87a5f0a 100755 --- a/DependencyInjection/Compiler/OpenAPIServerApiPass.php +++ b/DependencyInjection/Compiler/OpenAPIServerApiPass.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/DependencyInjection/OpenAPIServerExtension.php b/DependencyInjection/OpenAPIServerExtension.php index 7d1ac2ab..eaa5f2d5 100755 --- a/DependencyInjection/OpenAPIServerExtension.php +++ b/DependencyInjection/OpenAPIServerExtension.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/BaseUser.php b/Model/BaseUser.php index 2c55b283..ce4e8e9e 100755 --- a/Model/BaseUser.php +++ b/Model/BaseUser.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -70,6 +70,36 @@ class BaseUser */ protected $password; + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + /** * Constructor. * @@ -80,6 +110,9 @@ public function __construct(array $data = null) $this->email = isset($data['email']) ? $data['email'] : null; $this->username = isset($data['username']) ? $data['username'] : null; $this->password = isset($data['password']) ? $data['password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; } /** @@ -147,4 +180,70 @@ public function setPassword(string $password = null) return $this; } + + /** + * Gets picture. + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture the profile picture of the user in data URI scheme + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about an introduction of the user + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on a short description about the project the user is currently working on + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } } diff --git a/Model/BasicUserDataResponse.php b/Model/BasicUserDataResponse.php index d678b615..465f4bcd 100755 --- a/Model/BasicUserDataResponse.php +++ b/Model/BasicUserDataResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -60,6 +60,36 @@ class BasicUserDataResponse */ protected $username; + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + /** * Amount of projects of the user. * @@ -99,6 +129,9 @@ public function __construct(array $data = null) { $this->id = isset($data['id']) ? $data['id'] : null; $this->username = isset($data['username']) ? $data['username'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; $this->projects = isset($data['projects']) ? $data['projects'] : null; $this->followers = isset($data['followers']) ? $data['followers'] : null; $this->following = isset($data['following']) ? $data['following'] : null; @@ -148,6 +181,72 @@ public function setUsername(string $username = null) return $this; } + /** + * Gets picture. + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture the profile picture of the user in data URI scheme + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about an introduction of the user + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on a short description about the project the user is currently working on + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } + /** * Gets projects. */ diff --git a/Model/DryRun.php b/Model/DryRun.php index b6472e62..e0820cff 100755 --- a/Model/DryRun.php +++ b/Model/DryRun.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ExtendedUserDataResponse.php b/Model/ExtendedUserDataResponse.php index ee978ddf..f5b2c85e 100755 --- a/Model/ExtendedUserDataResponse.php +++ b/Model/ExtendedUserDataResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -60,6 +60,36 @@ class ExtendedUserDataResponse */ protected $username; + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + /** * Amount of projects of the user. * @@ -109,6 +139,9 @@ public function __construct(array $data = null) { $this->id = isset($data['id']) ? $data['id'] : null; $this->username = isset($data['username']) ? $data['username'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; $this->projects = isset($data['projects']) ? $data['projects'] : null; $this->followers = isset($data['followers']) ? $data['followers'] : null; $this->following = isset($data['following']) ? $data['following'] : null; @@ -159,6 +192,72 @@ public function setUsername(string $username = null) return $this; } + /** + * Gets picture. + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture the profile picture of the user in data URI scheme + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about an introduction of the user + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on a short description about the project the user is currently working on + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } + /** * Gets projects. */ diff --git a/Model/ExtendedUserDataResponseAllOf.php b/Model/ExtendedUserDataResponseAllOf.php index b8525cd1..89016641 100755 --- a/Model/ExtendedUserDataResponseAllOf.php +++ b/Model/ExtendedUserDataResponseAllOf.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ExtensionResponse.php b/Model/ExtensionResponse.php index 5f8869f7..b108f2ee 100755 --- a/Model/ExtensionResponse.php +++ b/Model/ExtensionResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/FeaturedProjectResponse.php b/Model/FeaturedProjectResponse.php index e2de8534..e6ac4c6a 100755 --- a/Model/FeaturedProjectResponse.php +++ b/Model/FeaturedProjectResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/JWTResponse.php b/Model/JWTResponse.php index 7abb47c8..18dce881 100755 --- a/Model/JWTResponse.php +++ b/Model/JWTResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/LoginRequest.php b/Model/LoginRequest.php index b95c7f75..b63da2e5 100755 --- a/Model/LoginRequest.php +++ b/Model/LoginRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/MediaCategoryResponse.php b/Model/MediaCategoryResponse.php index 744876c5..f71725c3 100755 --- a/Model/MediaCategoryResponse.php +++ b/Model/MediaCategoryResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/MediaFileResponse.php b/Model/MediaFileResponse.php index 873e31ff..9a33868a 100755 --- a/Model/MediaFileResponse.php +++ b/Model/MediaFileResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -108,6 +108,27 @@ class MediaFileResponse */ protected $download_url; + /** + * Size of the file in bytes. + * + * @var int|null + * @SerializedName("size") + * @Assert\Type("int") + * @Type("int") + */ + protected $size; + + /** + * Type of the media file. + * + * @var string|null + * @SerializedName("file_type") + * @Assert\Choice({ "project", "image", "sound", "video", "other" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $file_type; + /** * Constructor. * @@ -123,6 +144,8 @@ public function __construct(array $data = null) $this->author = isset($data['author']) ? $data['author'] : null; $this->extension = isset($data['extension']) ? $data['extension'] : null; $this->download_url = isset($data['download_url']) ? $data['download_url'] : null; + $this->size = isset($data['size']) ? $data['size'] : null; + $this->file_type = isset($data['file_type']) ? $data['file_type'] : null; } /** @@ -292,4 +315,48 @@ public function setDownloadUrl(string $download_url = null) return $this; } + + /** + * Gets size. + */ + public function getSize(): ?int + { + return $this->size; + } + + /** + * Sets size. + * + * @param int|null $size Size of the file in bytes + * + * @return $this + */ + public function setSize(int $size = null) + { + $this->size = $size; + + return $this; + } + + /** + * Gets file_type. + */ + public function getFileType(): ?string + { + return $this->file_type; + } + + /** + * Sets file_type. + * + * @param string|null $file_type Type of the media file + * + * @return $this + */ + public function setFileType(string $file_type = null) + { + $this->file_type = $file_type; + + return $this; + } } diff --git a/Model/MediaPackageResponse.php b/Model/MediaPackageResponse.php index 2cea7492..c91d10c8 100755 --- a/Model/MediaPackageResponse.php +++ b/Model/MediaPackageResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/NotificationContent.php b/Model/NotificationContent.php index a8a1acd9..c7ebcccd 100755 --- a/Model/NotificationContent.php +++ b/Model/NotificationContent.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/NotificationResponse.php b/Model/NotificationResponse.php index e4f1180f..13d65504 100755 --- a/Model/NotificationResponse.php +++ b/Model/NotificationResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/NotificationsCountResponse.php b/Model/NotificationsCountResponse.php index ae8c85cd..34094363 100755 --- a/Model/NotificationsCountResponse.php +++ b/Model/NotificationsCountResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/NotificationsType.php b/Model/NotificationsType.php index 256a44e5..43e3346a 100755 --- a/Model/NotificationsType.php +++ b/Model/NotificationsType.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/OAuthLoginRequest.php b/Model/OAuthLoginRequest.php index a0c40a3d..b76bc9ee 100755 --- a/Model/OAuthLoginRequest.php +++ b/Model/OAuthLoginRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ProjectReportRequest.php b/Model/ProjectReportRequest.php index a20ad54d..6bc4b6e0 100755 --- a/Model/ProjectReportRequest.php +++ b/Model/ProjectReportRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ProjectResponse.php b/Model/ProjectResponse.php index d546e8c8..c5d49e5e 100755 --- a/Model/ProjectResponse.php +++ b/Model/ProjectResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -90,11 +90,27 @@ class ProjectResponse /** * @var int|null - * @SerializedName("download") + * @SerializedName("downloads") * @Assert\Type("int") * @Type("int") */ - protected $download; + protected $downloads; + + /** + * @var int|null + * @SerializedName("reactions") + * @Assert\Type("int") + * @Type("int") + */ + protected $reactions; + + /** + * @var int|null + * @SerializedName("comments") + * @Assert\Type("int") + * @Type("int") + */ + protected $comments; /** * @var bool|null @@ -193,7 +209,9 @@ public function __construct(array $data = null) $this->description = isset($data['description']) ? $data['description'] : null; $this->version = isset($data['version']) ? $data['version'] : null; $this->views = isset($data['views']) ? $data['views'] : null; - $this->download = isset($data['download']) ? $data['download'] : null; + $this->downloads = isset($data['downloads']) ? $data['downloads'] : null; + $this->reactions = isset($data['reactions']) ? $data['reactions'] : null; + $this->comments = isset($data['comments']) ? $data['comments'] : null; $this->private = isset($data['private']) ? $data['private'] : null; $this->flavor = isset($data['flavor']) ? $data['flavor'] : null; $this->tags = isset($data['tags']) ? $data['tags'] : null; @@ -327,21 +345,61 @@ public function setViews(int $views = null) } /** - * Gets download. + * Gets downloads. + */ + public function getDownloads(): ?int + { + return $this->downloads; + } + + /** + * Sets downloads. + * + * @return $this + */ + public function setDownloads(int $downloads = null) + { + $this->downloads = $downloads; + + return $this; + } + + /** + * Gets reactions. + */ + public function getReactions(): ?int + { + return $this->reactions; + } + + /** + * Sets reactions. + * + * @return $this + */ + public function setReactions(int $reactions = null) + { + $this->reactions = $reactions; + + return $this; + } + + /** + * Gets comments. */ - public function getDownload(): ?int + public function getComments(): ?int { - return $this->download; + return $this->comments; } /** - * Sets download. + * Sets comments. * * @return $this */ - public function setDownload(int $download = null) + public function setComments(int $comments = null) { - $this->download = $download; + $this->comments = $comments; return $this; } diff --git a/Model/ProjectsCategory.php b/Model/ProjectsCategory.php index 2161ea7d..71eb7fd7 100755 --- a/Model/ProjectsCategory.php +++ b/Model/ProjectsCategory.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/RefreshRequest.php b/Model/RefreshRequest.php index 19456a7f..981ad07c 100755 --- a/Model/RefreshRequest.php +++ b/Model/RefreshRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/RegisterErrorResponse.php b/Model/RegisterErrorResponse.php index 179d1e31..55742e67 100755 --- a/Model/RegisterErrorResponse.php +++ b/Model/RegisterErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/RegisterRequest.php b/Model/RegisterRequest.php index 20af6fa7..3ad85e87 100755 --- a/Model/RegisterRequest.php +++ b/Model/RegisterRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -80,6 +80,36 @@ class RegisterRequest */ protected $password; + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + /** * Constructor. * @@ -91,6 +121,9 @@ public function __construct(array $data = null) $this->email = isset($data['email']) ? $data['email'] : null; $this->username = isset($data['username']) ? $data['username'] : null; $this->password = isset($data['password']) ? $data['password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; } /** @@ -180,4 +213,70 @@ public function setPassword(string $password = null) return $this; } + + /** + * Gets picture. + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture the profile picture of the user in data URI scheme + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about an introduction of the user + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on a short description about the project the user is currently working on + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } } diff --git a/Model/ResetPasswordErrorResponse.php b/Model/ResetPasswordErrorResponse.php index 6b3ea841..05309f57 100755 --- a/Model/ResetPasswordErrorResponse.php +++ b/Model/ResetPasswordErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ResetPasswordRequest.php b/Model/ResetPasswordRequest.php index db9c4074..d3788e96 100755 --- a/Model/ResetPasswordRequest.php +++ b/Model/ResetPasswordRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/SearchResponse.php b/Model/SearchResponse.php index 970aa22c..23649105 100755 --- a/Model/SearchResponse.php +++ b/Model/SearchResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/SurveyResponse.php b/Model/SurveyResponse.php index 57aa2275..07963bc7 100755 --- a/Model/SurveyResponse.php +++ b/Model/SurveyResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/TagResponse.php b/Model/TagResponse.php index c0490dca..9d99534f 100755 --- a/Model/TagResponse.php +++ b/Model/TagResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UpdateProjectErrorResponse.php b/Model/UpdateProjectErrorResponse.php new file mode 100755 index 00000000..67f4c143 --- /dev/null +++ b/Model/UpdateProjectErrorResponse.php @@ -0,0 +1,171 @@ +name = isset($data['name']) ? $data['name'] : null; + $this->description = isset($data['description']) ? $data['description'] : null; + $this->credits = isset($data['credits']) ? $data['credits'] : null; + $this->screenshot = isset($data['screenshot']) ? $data['screenshot'] : null; + } + + /** + * Gets name. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets description. + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Sets description. + * + * @return $this + */ + public function setDescription(string $description = null) + { + $this->description = $description; + + return $this; + } + + /** + * Gets credits. + */ + public function getCredits(): ?string + { + return $this->credits; + } + + /** + * Sets credits. + * + * @return $this + */ + public function setCredits(string $credits = null) + { + $this->credits = $credits; + + return $this; + } + + /** + * Gets screenshot. + */ + public function getScreenshot(): ?string + { + return $this->screenshot; + } + + /** + * Sets screenshot. + * + * @return $this + */ + public function setScreenshot(string $screenshot = null) + { + $this->screenshot = $screenshot; + + return $this; + } +} diff --git a/Model/UpdateProjectFailureResponse.php b/Model/UpdateProjectFailureResponse.php new file mode 100755 index 00000000..6a631196 --- /dev/null +++ b/Model/UpdateProjectFailureResponse.php @@ -0,0 +1,81 @@ +error = isset($data['error']) ? $data['error'] : null; + } + + /** + * Gets error. + */ + public function getError(): ?string + { + return $this->error; + } + + /** + * Sets error. + * + * @return $this + */ + public function setError(string $error = null) + { + $this->error = $error; + + return $this; + } +} diff --git a/Model/UpdateProjectRequest.php b/Model/UpdateProjectRequest.php new file mode 100755 index 00000000..8846e189 --- /dev/null +++ b/Model/UpdateProjectRequest.php @@ -0,0 +1,216 @@ +name = isset($data['name']) ? $data['name'] : null; + $this->description = isset($data['description']) ? $data['description'] : null; + $this->credits = isset($data['credits']) ? $data['credits'] : null; + $this->private = isset($data['private']) ? $data['private'] : null; + $this->screenshot = isset($data['screenshot']) ? $data['screenshot'] : null; + } + + /** + * Gets name. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Sets name. + * + * @param string|null $name The name of the project. minLength: 1 | maxLength: 255 + * + * @return $this + */ + public function setName(string $name = null) + { + $this->name = $name; + + return $this; + } + + /** + * Gets description. + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Sets description. + * + * @param string|null $description a description of the project + * + * @return $this + */ + public function setDescription(string $description = null) + { + $this->description = $description; + + return $this; + } + + /** + * Gets credits. + */ + public function getCredits(): ?string + { + return $this->credits; + } + + /** + * Sets credits. + * + * @param string|null $credits Credits and notes for the project. E.g., credits for using ideas, scripts or artwork from other people. + * + * @return $this + */ + public function setCredits(string $credits = null) + { + $this->credits = $credits; + + return $this; + } + + /** + * Gets private. + */ + public function isPrivate(): ?bool + { + return $this->private; + } + + /** + * Sets private. + * + * @param bool|null $private whether a project is publicly visible (false) or only via direct link (true) + * + * @return $this + */ + public function setPrivate(bool $private = null) + { + $this->private = $private; + + return $this; + } + + /** + * Gets screenshot. + */ + public function getScreenshot(): ?string + { + return $this->screenshot; + } + + /** + * Sets screenshot. + * + * @param string|null $screenshot an image representing the project in data URI scheme + * + * @return $this + */ + public function setScreenshot(string $screenshot = null) + { + $this->screenshot = $screenshot; + + return $this; + } +} diff --git a/Model/UpdateUserErrorResponse.php b/Model/UpdateUserErrorResponse.php index 7bbe96fb..732437b1 100755 --- a/Model/UpdateUserErrorResponse.php +++ b/Model/UpdateUserErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -67,6 +67,24 @@ class UpdateUserErrorResponse */ protected $password; + /** + * @var string|null + * @SerializedName("currentPassword") + * @Assert\Choice({ "Current password is missing", "Current password is wrong" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $current_password; + + /** + * @var string|null + * @SerializedName("picture") + * @Assert\Choice({ "Profile picture invalid or not supported" }) + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + /** * Constructor. * @@ -77,6 +95,8 @@ public function __construct(array $data = null) $this->email = isset($data['email']) ? $data['email'] : null; $this->username = isset($data['username']) ? $data['username'] : null; $this->password = isset($data['password']) ? $data['password'] : null; + $this->current_password = isset($data['current_password']) ? $data['current_password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; } /** @@ -138,4 +158,44 @@ public function setPassword(string $password = null) return $this; } + + /** + * Gets current_password. + */ + public function getCurrentPassword(): ?string + { + return $this->current_password; + } + + /** + * Sets current_password. + * + * @return $this + */ + public function setCurrentPassword(string $current_password = null) + { + $this->current_password = $current_password; + + return $this; + } + + /** + * Gets picture. + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } } diff --git a/Model/UpdateUserRequest.php b/Model/UpdateUserRequest.php index cdc23f1b..fe928a4a 100755 --- a/Model/UpdateUserRequest.php +++ b/Model/UpdateUserRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -80,6 +80,46 @@ class UpdateUserRequest */ protected $password; + /** + * The profile picture of the user in data URI scheme. + * + * @var string|null + * @SerializedName("picture") + * @Assert\Type("string") + * @Type("string") + */ + protected $picture; + + /** + * An introduction of the user. + * + * @var string|null + * @SerializedName("about") + * @Assert\Type("string") + * @Type("string") + */ + protected $about; + + /** + * A short description about the project the user is currently working on. + * + * @var string|null + * @SerializedName("currentlyWorkingOn") + * @Assert\Type("string") + * @Type("string") + */ + protected $currently_working_on; + + /** + * The current password of the user. Required for changing the password. + * + * @var string|null + * @SerializedName("currentPassword") + * @Assert\Type("string") + * @Type("string") + */ + protected $current_password; + /** * Constructor. * @@ -91,6 +131,10 @@ public function __construct(array $data = null) $this->email = isset($data['email']) ? $data['email'] : null; $this->username = isset($data['username']) ? $data['username'] : null; $this->password = isset($data['password']) ? $data['password'] : null; + $this->picture = isset($data['picture']) ? $data['picture'] : null; + $this->about = isset($data['about']) ? $data['about'] : null; + $this->currently_working_on = isset($data['currently_working_on']) ? $data['currently_working_on'] : null; + $this->current_password = isset($data['current_password']) ? $data['current_password'] : null; } /** @@ -180,4 +224,92 @@ public function setPassword(string $password = null) return $this; } + + /** + * Gets picture. + */ + public function getPicture(): ?string + { + return $this->picture; + } + + /** + * Sets picture. + * + * @param string|null $picture the profile picture of the user in data URI scheme + * + * @return $this + */ + public function setPicture(string $picture = null) + { + $this->picture = $picture; + + return $this; + } + + /** + * Gets about. + */ + public function getAbout(): ?string + { + return $this->about; + } + + /** + * Sets about. + * + * @param string|null $about an introduction of the user + * + * @return $this + */ + public function setAbout(string $about = null) + { + $this->about = $about; + + return $this; + } + + /** + * Gets currently_working_on. + */ + public function getCurrentlyWorkingOn(): ?string + { + return $this->currently_working_on; + } + + /** + * Sets currently_working_on. + * + * @param string|null $currently_working_on a short description about the project the user is currently working on + * + * @return $this + */ + public function setCurrentlyWorkingOn(string $currently_working_on = null) + { + $this->currently_working_on = $currently_working_on; + + return $this; + } + + /** + * Gets current_password. + */ + public function getCurrentPassword(): ?string + { + return $this->current_password; + } + + /** + * Sets current_password. + * + * @param string|null $current_password The current password of the user. Required for changing the password. + * + * @return $this + */ + public function setCurrentPassword(string $current_password = null) + { + $this->current_password = $current_password; + + return $this; + } } diff --git a/Model/UpdateUserRequestAllOf.php b/Model/UpdateUserRequestAllOf.php new file mode 100755 index 00000000..16d6130b --- /dev/null +++ b/Model/UpdateUserRequestAllOf.php @@ -0,0 +1,84 @@ +current_password = isset($data['current_password']) ? $data['current_password'] : null; + } + + /** + * Gets current_password. + */ + public function getCurrentPassword(): ?string + { + return $this->current_password; + } + + /** + * Sets current_password. + * + * @param string|null $current_password The current password of the user. Required for changing the password. + * + * @return $this + */ + public function setCurrentPassword(string $current_password = null) + { + $this->current_password = $current_password; + + return $this; + } +} diff --git a/Model/UpgradeTokenRequest.php b/Model/UpgradeTokenRequest.php index 10c4b074..d334d259 100755 --- a/Model/UpgradeTokenRequest.php +++ b/Model/UpgradeTokenRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UploadErrorResponse.php b/Model/UploadErrorResponse.php index c1d9a1c2..fe094860 100755 --- a/Model/UploadErrorResponse.php +++ b/Model/UploadErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/OpenAPIServerBundle.php b/OpenAPIServerBundle.php index 8076b520..eeb08c05 100755 --- a/OpenAPIServerBundle.php +++ b/OpenAPIServerBundle.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/README.md b/README.md index 9537d427..4a9f0f0f 100755 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ API for the Catrobat Share Platform This [Symfony](https://symfony.com/) bundle is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.0.74 +- API version: v1.1.0 - Build package: org.openapitools.codegen.languages.PhpSymfonyServerCodegen For more information, please visit [https://share.catrob.at](https://share.catrob.at) @@ -127,13 +127,14 @@ Class | Method | HTTP request | Description *MediaLibraryApiInterface* | [**mediaFilesGet**](Resources/docs/Api/MediaLibraryApiInterface.md#mediafilesget) | **GET** /media/files | Get *all* content of the media library. *MediaLibraryApiInterface* | [**mediaFilesSearchGet**](Resources/docs/Api/MediaLibraryApiInterface.md#mediafilessearchget) | **GET** /media/files/search | Search for mediafiles associated with keywords *MediaLibraryApiInterface* | [**mediaPackageNameGet**](Resources/docs/Api/MediaLibraryApiInterface.md#mediapackagenameget) | **GET** /media/package/{name} | Get media-library asstes of a named package -*NotificationsApiInterface* | [**notificationIdReadPut**](Resources/docs/Api/NotificationsApiInterface.md#notificationidreadput) | **PUT** /notification/{id}/read | Mark specified notification as read - StatusCode: 501 - Not yet implemented -*NotificationsApiInterface* | [**notificationsCountGet**](Resources/docs/Api/NotificationsApiInterface.md#notificationscountget) | **GET** /notifications/count | Count the number of unseen notifications -- StatusCode: 501 - Not yet implemented +*NotificationsApiInterface* | [**notificationIdReadPut**](Resources/docs/Api/NotificationsApiInterface.md#notificationidreadput) | **PUT** /notification/{id}/read | Mark specified notification as read +*NotificationsApiInterface* | [**notificationsCountGet**](Resources/docs/Api/NotificationsApiInterface.md#notificationscountget) | **GET** /notifications/count | Count the number of unseen notifications *NotificationsApiInterface* | [**notificationsGet**](Resources/docs/Api/NotificationsApiInterface.md#notificationsget) | **GET** /notifications | Get user notifications -- StatusCode: 501 - Not yet implemented -*NotificationsApiInterface* | [**notificationsReadPut**](Resources/docs/Api/NotificationsApiInterface.md#notificationsreadput) | **PUT** /notifications/read | Mark all notifications as read -- StatusCode: 501 - Not yet implemented +*NotificationsApiInterface* | [**notificationsReadPut**](Resources/docs/Api/NotificationsApiInterface.md#notificationsreadput) | **PUT** /notifications/read | Mark all notifications as read *ProjectsApiInterface* | [**projectIdCatrobatGet**](Resources/docs/Api/ProjectsApiInterface.md#projectidcatrobatget) | **GET** /project/{id}/catrobat | Download the .catrobat (=zip) file of a project -*ProjectsApiInterface* | [**projectIdDelete**](Resources/docs/Api/ProjectsApiInterface.md#projectiddelete) | **DELETE** /project/{id} | Delete a project -- StatusCode: 501 - Not yet implemented +*ProjectsApiInterface* | [**projectIdDelete**](Resources/docs/Api/ProjectsApiInterface.md#projectiddelete) | **DELETE** /project/{id} | Delete a project *ProjectsApiInterface* | [**projectIdGet**](Resources/docs/Api/ProjectsApiInterface.md#projectidget) | **GET** /project/{id} | Get the information of a project +*ProjectsApiInterface* | [**projectIdPut**](Resources/docs/Api/ProjectsApiInterface.md#projectidput) | **PUT** /project/{id} | Update details of a project *ProjectsApiInterface* | [**projectIdRecommendationsGet**](Resources/docs/Api/ProjectsApiInterface.md#projectidrecommendationsget) | **GET** /project/{id}/recommendations | Get recommended projects related to the specific project *ProjectsApiInterface* | [**projectIdReportPost**](Resources/docs/Api/ProjectsApiInterface.md#projectidreportpost) | **POST** /project/{id}/report | Report a project -- StatusCode: 501 - Not yet implemented *ProjectsApiInterface* | [**projectsCategoriesGet**](Resources/docs/Api/ProjectsApiInterface.md#projectscategoriesget) | **GET** /projects/categories | Get default number of projects per category (Most downloaded etc.) @@ -145,7 +146,7 @@ Class | Method | HTTP request | Description *ProjectsApiInterface* | [**projectsTagsGet**](Resources/docs/Api/ProjectsApiInterface.md#projectstagsget) | **GET** /projects/tags | Get all possible project tags. Some Tags will only be availabe during events. *ProjectsApiInterface* | [**projectsUserGet**](Resources/docs/Api/ProjectsApiInterface.md#projectsuserget) | **GET** /projects/user | Get the projects of the logged in user *ProjectsApiInterface* | [**projectsUserIdGet**](Resources/docs/Api/ProjectsApiInterface.md#projectsuseridget) | **GET** /projects/user/{id} | Get the public projects of a given user -*SearchApiInterface* | [**searchGet**](Resources/docs/Api/SearchApiInterface.md#searchget) | **GET** /search | Search for projects, users,.. -- StatusCode: 501 - Not yet implemented +*SearchApiInterface* | [**searchGet**](Resources/docs/Api/SearchApiInterface.md#searchget) | **GET** /search | Search for projects, users,.. *UserApiInterface* | [**userDelete**](Resources/docs/Api/UserApiInterface.md#userdelete) | **DELETE** /user | Delete user account *UserApiInterface* | [**userGet**](Resources/docs/Api/UserApiInterface.md#userget) | **GET** /user | Get your private user data *UserApiInterface* | [**userIdGet**](Resources/docs/Api/UserApiInterface.md#useridget) | **GET** /user/{id} | Get public user data @@ -187,8 +188,12 @@ Class | Method | HTTP request | Description - [SearchResponse](Resources/docs/Model/SearchResponse.md) - [SurveyResponse](Resources/docs/Model/SurveyResponse.md) - [TagResponse](Resources/docs/Model/TagResponse.md) + - [UpdateProjectErrorResponse](Resources/docs/Model/UpdateProjectErrorResponse.md) + - [UpdateProjectFailureResponse](Resources/docs/Model/UpdateProjectFailureResponse.md) + - [UpdateProjectRequest](Resources/docs/Model/UpdateProjectRequest.md) - [UpdateUserErrorResponse](Resources/docs/Model/UpdateUserErrorResponse.md) - [UpdateUserRequest](Resources/docs/Model/UpdateUserRequest.md) + - [UpdateUserRequestAllOf](Resources/docs/Model/UpdateUserRequestAllOf.md) - [UpgradeTokenRequest](Resources/docs/Model/UpgradeTokenRequest.md) - [UploadErrorResponse](Resources/docs/Model/UploadErrorResponse.md) diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index f37ee6dc..57f2775c 100755 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -120,6 +120,14 @@ open_api_server_projects_projectidget: requirements: id: '^[a-zA-Z0-9\\-]+$' +open_api_server_projects_projectidput: + path: /project/{id} + methods: [PUT] + defaults: + _controller: open_api_server.controller.projects:projectIdPutAction + requirements: + id: '^[a-zA-Z0-9\\-]+$' + open_api_server_projects_projectidrecommendationsget: path: /project/{id}/recommendations methods: [GET] diff --git a/Resources/docs/Api/MediaLibraryApiInterface.md b/Resources/docs/Api/MediaLibraryApiInterface.md index 98db906b..a95b8adb 100755 --- a/Resources/docs/Api/MediaLibraryApiInterface.md +++ b/Resources/docs/Api/MediaLibraryApiInterface.md @@ -23,7 +23,7 @@ services: ``` ## **mediaFileIdGet** -> OpenAPI\Server\Model\MediaFileResponse mediaFileIdGet($id) +> OpenAPI\Server\Model\MediaFileResponse mediaFileIdGet($id, $attributes) Get the information of a specific media file @@ -44,7 +44,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaFileIdGet */ - public function mediaFileIdGet(int $id) + public function mediaFileIdGet(int $id, string $attributes = null) { // Implement the operation ... } @@ -58,6 +58,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **int**| ID of any given media file | + **attributes** | **string**| | [optional] ### Return type @@ -75,7 +76,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **mediaFilesGet** -> OpenAPI\Server\Model\MediaFileResponse mediaFilesGet($limit, $offset, $flavor) +> OpenAPI\Server\Model\MediaFileResponse mediaFilesGet($limit, $offset, $attributes, $flavor) Get *all* content of the media library. @@ -96,7 +97,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaFilesGet */ - public function mediaFilesGet(int $limit = '20', int $offset = '0', string $flavor = null) + public function mediaFilesGet(int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) { // Implement the operation ... } @@ -111,6 +112,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **flavor** | **string**| | [optional] ### Return type @@ -129,7 +131,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **mediaFilesSearchGet** -> OpenAPI\Server\Model\MediaFileResponse mediaFilesSearchGet($query, $flavor, $limit, $offset, $package_name) +> OpenAPI\Server\Model\MediaFileResponse mediaFilesSearchGet($query, $limit, $offset, $attributes, $flavor, $package_name) Search for mediafiles associated with keywords @@ -150,7 +152,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaFilesSearchGet */ - public function mediaFilesSearchGet(string $query, string $flavor = null, int $limit = '20', int $offset = '0', string $package_name = null) + public function mediaFilesSearchGet(string $query, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null, string $package_name = null) { // Implement the operation ... } @@ -164,9 +166,10 @@ class MediaLibraryApi implements MediaLibraryApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **string**| | - **flavor** | **string**| | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] + **flavor** | **string**| | [optional] **package_name** | **string**| In which package you want to search (for more fine tuned results) | [optional] ### Return type @@ -185,7 +188,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **mediaPackageNameGet** -> OpenAPI\Server\Model\MediaFileResponse mediaPackageNameGet($name, $limit, $offset) +> OpenAPI\Server\Model\MediaFileResponse mediaPackageNameGet($name, $limit, $offset, $attributes) Get media-library asstes of a named package @@ -206,7 +209,7 @@ class MediaLibraryApi implements MediaLibraryApiInterface /** * Implementation of MediaLibraryApiInterface#mediaPackageNameGet */ - public function mediaPackageNameGet(string $name, int $limit = '20', int $offset = '0') + public function mediaPackageNameGet(string $name, int $limit = '20', int $offset = '0', string $attributes = null) { // Implement the operation ... } @@ -222,6 +225,7 @@ Name | Type | Description | Notes **name** | **string**| Name of the package | **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] ### Return type diff --git a/Resources/docs/Api/NotificationsApiInterface.md b/Resources/docs/Api/NotificationsApiInterface.md index fecbd9bb..356a9e53 100755 --- a/Resources/docs/Api/NotificationsApiInterface.md +++ b/Resources/docs/Api/NotificationsApiInterface.md @@ -4,10 +4,10 @@ All URIs are relative to *https://share.catrob.at/api* Method | HTTP request | Description ------------- | ------------- | ------------- -[**notificationIdReadPut**](NotificationsApiInterface.md#notificationIdReadPut) | **PUT** /notification/{id}/read | Mark specified notification as read - StatusCode: 501 - Not yet implemented -[**notificationsCountGet**](NotificationsApiInterface.md#notificationsCountGet) | **GET** /notifications/count | Count the number of unseen notifications -- StatusCode: 501 - Not yet implemented +[**notificationIdReadPut**](NotificationsApiInterface.md#notificationIdReadPut) | **PUT** /notification/{id}/read | Mark specified notification as read +[**notificationsCountGet**](NotificationsApiInterface.md#notificationsCountGet) | **GET** /notifications/count | Count the number of unseen notifications [**notificationsGet**](NotificationsApiInterface.md#notificationsGet) | **GET** /notifications | Get user notifications -- StatusCode: 501 - Not yet implemented -[**notificationsReadPut**](NotificationsApiInterface.md#notificationsReadPut) | **PUT** /notifications/read | Mark all notifications as read -- StatusCode: 501 - Not yet implemented +[**notificationsReadPut**](NotificationsApiInterface.md#notificationsReadPut) | **PUT** /notifications/read | Mark all notifications as read ## Service Declaration @@ -25,7 +25,7 @@ services: ## **notificationIdReadPut** > notificationIdReadPut($id, $accept_language) -Mark specified notification as read - StatusCode: 501 - Not yet implemented +Mark specified notification as read ### Example Implementation ```php @@ -78,7 +78,7 @@ void (empty response body) ## **notificationsCountGet** > OpenAPI\Server\Model\NotificationsCountResponse notificationsCountGet() -Count the number of unseen notifications -- StatusCode: 501 - Not yet implemented +Count the number of unseen notifications ### Example Implementation ```php @@ -125,7 +125,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **notificationsGet** -> OpenAPI\Server\Model\NotificationResponse notificationsGet($accept_language, $limit, $offset, $type) +> OpenAPI\Server\Model\NotificationResponse notificationsGet($accept_language, $limit, $offset, $attributes, $type) Get user notifications -- StatusCode: 501 - Not yet implemented @@ -146,7 +146,7 @@ class NotificationsApi implements NotificationsApiInterface /** * Implementation of NotificationsApiInterface#notificationsGet */ - public function notificationsGet(string $accept_language = null, int $limit = '20', int $offset = '0', NotificationsType $type = null) + public function notificationsGet(string $accept_language = null, int $limit = '20', int $offset = '0', string $attributes = null, NotificationsType $type = null) { // Implement the operation ... } @@ -162,6 +162,7 @@ Name | Type | Description | Notes **accept_language** | **string**| | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **type** | [**OpenAPI\Server\Model\NotificationsType**](../Model/.md)| | [optional] ### Return type @@ -182,7 +183,7 @@ Name | Type | Description | Notes ## **notificationsReadPut** > notificationsReadPut() -Mark all notifications as read -- StatusCode: 501 - Not yet implemented +Mark all notifications as read ### Example Implementation ```php diff --git a/Resources/docs/Api/ProjectsApiInterface.md b/Resources/docs/Api/ProjectsApiInterface.md index 8b8aa4d0..5beb392f 100755 --- a/Resources/docs/Api/ProjectsApiInterface.md +++ b/Resources/docs/Api/ProjectsApiInterface.md @@ -5,8 +5,9 @@ All URIs are relative to *https://share.catrob.at/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**projectIdCatrobatGet**](ProjectsApiInterface.md#projectIdCatrobatGet) | **GET** /project/{id}/catrobat | Download the .catrobat (=zip) file of a project -[**projectIdDelete**](ProjectsApiInterface.md#projectIdDelete) | **DELETE** /project/{id} | Delete a project -- StatusCode: 501 - Not yet implemented +[**projectIdDelete**](ProjectsApiInterface.md#projectIdDelete) | **DELETE** /project/{id} | Delete a project [**projectIdGet**](ProjectsApiInterface.md#projectIdGet) | **GET** /project/{id} | Get the information of a project +[**projectIdPut**](ProjectsApiInterface.md#projectIdPut) | **PUT** /project/{id} | Update details of a project [**projectIdRecommendationsGet**](ProjectsApiInterface.md#projectIdRecommendationsGet) | **GET** /project/{id}/recommendations | Get recommended projects related to the specific project [**projectIdReportPost**](ProjectsApiInterface.md#projectIdReportPost) | **POST** /project/{id}/report | Report a project -- StatusCode: 501 - Not yet implemented [**projectsCategoriesGet**](ProjectsApiInterface.md#projectsCategoriesGet) | **GET** /projects/categories | Get default number of projects per category (Most downloaded etc.) @@ -89,7 +90,7 @@ No authorization required ## **projectIdDelete** > projectIdDelete($id) -Delete a project -- StatusCode: 501 - Not yet implemented +Delete a project ### Example Implementation ```php @@ -190,8 +191,64 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +## **projectIdPut** +> array projectIdPut($id, $update_project_request, $accept_language) + +Update details of a project + +Update one of your projects. All attributes are optional. For example you can update only the description. Or you can update multiple attributes at once. + +### Example Implementation +```php + OpenAPI\Server\Model\ProjectResponse projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $flavor) +> OpenAPI\Server\Model\ProjectResponse projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor) Get recommended projects related to the specific project @@ -212,7 +269,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectIdRecommendationsGet */ - public function projectIdRecommendationsGet(string $id, string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $flavor = null) + public function projectIdRecommendationsGet(string $id, string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) { // Implement the operation ... } @@ -231,6 +288,7 @@ Name | Type | Description | Notes **max_version** | **string**| Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **flavor** | **string**| | [optional] ### Return type @@ -408,7 +466,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **projectsFeaturedGet** -> OpenAPI\Server\Model\FeaturedProjectResponse projectsFeaturedGet($platform, $max_version, $limit, $offset, $flavor) +> OpenAPI\Server\Model\FeaturedProjectResponse projectsFeaturedGet($platform, $max_version, $limit, $offset, $attributes, $flavor) Get the currently featured projects @@ -429,7 +487,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsFeaturedGet */ - public function projectsFeaturedGet(string $platform = null, string $max_version = null, int $limit = '20', int $offset = '0', string $flavor = null) + public function projectsFeaturedGet(string $platform = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) { // Implement the operation ... } @@ -446,6 +504,7 @@ Name | Type | Description | Notes **max_version** | **string**| Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **flavor** | **string**| | [optional] ### Return type @@ -464,7 +523,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **projectsGet** -> OpenAPI\Server\Model\ProjectResponse projectsGet($category, $accept_language, $max_version, $limit, $offset, $flavor) +> OpenAPI\Server\Model\ProjectResponse projectsGet($category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor) Get projects @@ -485,7 +544,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsGet */ - public function projectsGet(string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $flavor = null) + public function projectsGet(string $category, string $accept_language = null, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) { // Implement the operation ... } @@ -503,6 +562,7 @@ Name | Type | Description | Notes **max_version** | **string**| Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **flavor** | **string**| | [optional] ### Return type @@ -577,7 +637,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **projectsSearchGet** -> OpenAPI\Server\Model\ProjectResponse projectsSearchGet($query, $max_version, $limit, $offset, $flavor) +> OpenAPI\Server\Model\ProjectResponse projectsSearchGet($query, $max_version, $limit, $offset, $attributes, $flavor) Search for projects associated with a keywords @@ -598,7 +658,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsSearchGet */ - public function projectsSearchGet(string $query, string $max_version = null, int $limit = '20', int $offset = '0', string $flavor = null) + public function projectsSearchGet(string $query, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) { // Implement the operation ... } @@ -615,6 +675,7 @@ Name | Type | Description | Notes **max_version** | **string**| Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **flavor** | **string**| | [optional] ### Return type @@ -685,7 +746,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **projectsUserGet** -> OpenAPI\Server\Model\ProjectResponse projectsUserGet($max_version, $limit, $offset, $flavor) +> OpenAPI\Server\Model\ProjectResponse projectsUserGet($max_version, $limit, $offset, $attributes, $flavor) Get the projects of the logged in user @@ -706,7 +767,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsUserGet */ - public function projectsUserGet(string $max_version = null, int $limit = '20', int $offset = '0', string $flavor = null) + public function projectsUserGet(string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) { // Implement the operation ... } @@ -722,6 +783,7 @@ Name | Type | Description | Notes **max_version** | **string**| Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **flavor** | **string**| | [optional] ### Return type @@ -740,7 +802,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **projectsUserIdGet** -> OpenAPI\Server\Model\ProjectResponse projectsUserIdGet($id, $max_version, $limit, $offset, $flavor) +> OpenAPI\Server\Model\ProjectResponse projectsUserIdGet($id, $max_version, $limit, $offset, $attributes, $flavor) Get the public projects of a given user @@ -761,7 +823,7 @@ class ProjectsApi implements ProjectsApiInterface /** * Implementation of ProjectsApiInterface#projectsUserIdGet */ - public function projectsUserIdGet(string $id, string $max_version = null, int $limit = '20', int $offset = '0', string $flavor = null) + public function projectsUserIdGet(string $id, string $max_version = null, int $limit = '20', int $offset = '0', string $attributes = null, string $flavor = null) { // Implement the operation ... } @@ -778,6 +840,7 @@ Name | Type | Description | Notes **max_version** | **string**| Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' | [optional] **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] **flavor** | **string**| | [optional] ### Return type diff --git a/Resources/docs/Api/SearchApiInterface.md b/Resources/docs/Api/SearchApiInterface.md index 84e37239..966cd3f1 100755 --- a/Resources/docs/Api/SearchApiInterface.md +++ b/Resources/docs/Api/SearchApiInterface.md @@ -4,7 +4,7 @@ All URIs are relative to *https://share.catrob.at/api* Method | HTTP request | Description ------------- | ------------- | ------------- -[**searchGet**](SearchApiInterface.md#searchGet) | **GET** /search | Search for projects, users,.. -- StatusCode: 501 - Not yet implemented +[**searchGet**](SearchApiInterface.md#searchGet) | **GET** /search | Search for projects, users,.. ## Service Declaration @@ -22,7 +22,7 @@ services: ## **searchGet** > OpenAPI\Server\Model\SearchResponse searchGet($query, $type, $limit, $offset) -Search for projects, users,.. -- StatusCode: 501 - Not yet implemented +Search for projects, users,.. The default is to search in all categories. diff --git a/Resources/docs/Api/UserApiInterface.md b/Resources/docs/Api/UserApiInterface.md index a475d43c..51bffb2f 100755 --- a/Resources/docs/Api/UserApiInterface.md +++ b/Resources/docs/Api/UserApiInterface.md @@ -347,7 +347,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **usersSearchGet** -> OpenAPI\Server\Model\BasicUserDataResponse usersSearchGet($query, $limit, $offset) +> OpenAPI\Server\Model\BasicUserDataResponse usersSearchGet($query, $limit, $offset, $attributes) Search for users @@ -370,7 +370,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#usersSearchGet */ - public function usersSearchGet(string $query, int $limit = '20', int $offset = '0') + public function usersSearchGet(string $query, int $limit = '20', int $offset = '0', string $attributes = null) { // Implement the operation ... } @@ -386,6 +386,7 @@ Name | Type | Description | Notes **query** | **string**| | **limit** | **int**| | [optional] [default to 20] **offset** | **int**| | [optional] [default to 0] + **attributes** | **string**| | [optional] ### Return type diff --git a/Resources/docs/Model/BaseUser.md b/Resources/docs/Model/BaseUser.md index e0d7aad3..bc98348e 100755 --- a/Resources/docs/Model/BaseUser.md +++ b/Resources/docs/Model/BaseUser.md @@ -6,6 +6,9 @@ Name | Type | Description | Notes **email** | **string** | Email of the user | [optional] **username** | **string** | Name of the user | minLength: 3 | maxLength: 180 | [optional] **password** | **string** | A secure password | minLength: 6 | maxLength: 4096 | [optional] +**picture** | **string** | The profile picture of the user in data URI scheme. | [optional] +**about** | **string** | An introduction of the user. | [optional] +**currently_working_on** | **string** | A short description about the project the user is currently working on. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Resources/docs/Model/BasicUserDataResponse.md b/Resources/docs/Model/BasicUserDataResponse.md index d370a6e2..2467862c 100755 --- a/Resources/docs/Model/BasicUserDataResponse.md +++ b/Resources/docs/Model/BasicUserDataResponse.md @@ -5,6 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **string** | Unique ID of the user | [optional] **username** | **string** | Nickname of the user | [optional] +**picture** | **string** | The profile picture of the user in data URI scheme. | [optional] +**about** | **string** | An introduction of the user. | [optional] +**currently_working_on** | **string** | A short description about the project the user is currently working on. | [optional] **projects** | **int** | Amount of projects of the user | [optional] **followers** | **int** | Amount of users that follow this user | [optional] **following** | **int** | Amount of users followed by this user | [optional] diff --git a/Resources/docs/Model/ExtendedUserDataResponse.md b/Resources/docs/Model/ExtendedUserDataResponse.md index fad15262..a296d5b8 100755 --- a/Resources/docs/Model/ExtendedUserDataResponse.md +++ b/Resources/docs/Model/ExtendedUserDataResponse.md @@ -5,6 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **string** | Unique ID of the user | [optional] **username** | **string** | Nickname of the user | [optional] +**picture** | **string** | The profile picture of the user in data URI scheme. | [optional] +**about** | **string** | An introduction of the user. | [optional] +**currently_working_on** | **string** | A short description about the project the user is currently working on. | [optional] **projects** | **int** | Amount of projects of the user | [optional] **followers** | **int** | Amount of users that follow this user | [optional] **following** | **int** | Amount of users followed by this user | [optional] diff --git a/Resources/docs/Model/MediaFileResponse.md b/Resources/docs/Model/MediaFileResponse.md index cc6f35d6..cea43632 100755 --- a/Resources/docs/Model/MediaFileResponse.md +++ b/Resources/docs/Model/MediaFileResponse.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **author** | **string** | | [optional] **extension** | **string** | | [optional] **download_url** | **string** | | [optional] +**size** | **int** | Size of the file in bytes | [optional] +**file_type** | **string** | Type of the media file | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Resources/docs/Model/ProjectResponse.md b/Resources/docs/Model/ProjectResponse.md index b02e2f13..f8a1092a 100755 --- a/Resources/docs/Model/ProjectResponse.md +++ b/Resources/docs/Model/ProjectResponse.md @@ -9,7 +9,9 @@ Name | Type | Description | Notes **description** | **string** | | [optional] **version** | **string** | | [optional] **views** | **int** | | [optional] -**download** | **int** | | [optional] +**downloads** | **int** | | [optional] +**reactions** | **int** | | [optional] +**comments** | **int** | | [optional] **private** | **bool** | | [optional] **flavor** | **string** | | [optional] **tags** | **string** | | [optional] diff --git a/Resources/docs/Model/RegisterRequest.md b/Resources/docs/Model/RegisterRequest.md index 3e2f3fa4..7124a434 100755 --- a/Resources/docs/Model/RegisterRequest.md +++ b/Resources/docs/Model/RegisterRequest.md @@ -7,6 +7,9 @@ Name | Type | Description | Notes **email** | **string** | Email of the user | [optional] **username** | **string** | Name of the user | minLength: 3 | maxLength: 180 | [optional] **password** | **string** | A secure password | minLength: 6 | maxLength: 4096 | [optional] +**picture** | **string** | The profile picture of the user in data URI scheme. | [optional] +**about** | **string** | An introduction of the user. | [optional] +**currently_working_on** | **string** | A short description about the project the user is currently working on. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Resources/docs/Model/UpdateProjectErrorResponse.md b/Resources/docs/Model/UpdateProjectErrorResponse.md new file mode 100755 index 00000000..f1ce9a49 --- /dev/null +++ b/Resources/docs/Model/UpdateProjectErrorResponse.md @@ -0,0 +1,13 @@ +# UpdateProjectErrorResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | | [optional] +**description** | **string** | | [optional] +**credits** | **string** | | [optional] +**screenshot** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/Resources/docs/Model/UpdateProjectFailureResponse.md b/Resources/docs/Model/UpdateProjectFailureResponse.md new file mode 100755 index 00000000..c1f11fd1 --- /dev/null +++ b/Resources/docs/Model/UpdateProjectFailureResponse.md @@ -0,0 +1,10 @@ +# UpdateProjectFailureResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/Resources/docs/Model/UpdateProjectRequest.md b/Resources/docs/Model/UpdateProjectRequest.md new file mode 100755 index 00000000..98f586d5 --- /dev/null +++ b/Resources/docs/Model/UpdateProjectRequest.md @@ -0,0 +1,14 @@ +# UpdateProjectRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | The name of the project. minLength: 1 | maxLength: 255 | [optional] +**description** | **string** | A description of the project. | [optional] +**credits** | **string** | Credits and notes for the project. E.g., credits for using ideas, scripts or artwork from other people. | [optional] +**private** | **bool** | Whether a project is publicly visible (false) or only via direct link (true). | [optional] +**screenshot** | **string** | An image representing the project in data URI scheme. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/Resources/docs/Model/UpdateUserErrorResponse.md b/Resources/docs/Model/UpdateUserErrorResponse.md index 08d284d2..842f2271 100755 --- a/Resources/docs/Model/UpdateUserErrorResponse.md +++ b/Resources/docs/Model/UpdateUserErrorResponse.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **email** | **string** | | [optional] **username** | **string** | | [optional] **password** | **string** | | [optional] +**current_password** | **string** | | [optional] +**picture** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Resources/docs/Model/UpdateUserRequest.md b/Resources/docs/Model/UpdateUserRequest.md index 7cc751ec..fa2e0e68 100755 --- a/Resources/docs/Model/UpdateUserRequest.md +++ b/Resources/docs/Model/UpdateUserRequest.md @@ -7,6 +7,10 @@ Name | Type | Description | Notes **email** | **string** | Email of the user | [optional] **username** | **string** | Name of the user | minLength: 3 | maxLength: 180 | [optional] **password** | **string** | A secure password | minLength: 6 | maxLength: 4096 | [optional] +**picture** | **string** | The profile picture of the user in data URI scheme. | [optional] +**about** | **string** | An introduction of the user. | [optional] +**currently_working_on** | **string** | A short description about the project the user is currently working on. | [optional] +**current_password** | **string** | The current password of the user. Required for changing the password. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Resources/docs/Model/UpdateUserRequestAllOf.md b/Resources/docs/Model/UpdateUserRequestAllOf.md new file mode 100755 index 00000000..6f12fba7 --- /dev/null +++ b/Resources/docs/Model/UpdateUserRequestAllOf.md @@ -0,0 +1,10 @@ +# UpdateUserRequestAllOf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_password** | **string** | The current password of the user. Required for changing the password. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/autoload.php b/autoload.php index 95050251..070d09ba 100755 --- a/autoload.php +++ b/autoload.php @@ -5,7 +5,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.0.74 + * The version of the OpenAPI document: v1.1.0 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/openapitools.json b/openapitools.json index 7f483d15..9cbc6d5d 100755 --- a/openapitools.json +++ b/openapitools.json @@ -1,5 +1,5 @@ { - "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { "version": "5.4.0" diff --git a/package.json b/package.json index 0c08931f..e40c358f 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "@openapitools/openapi-generator-cli": "^2.4.26" + "@openapitools/openapi-generator-cli": "^2.5.1" } }