All URIs are relative to https://share.catrob.at/api
| Method | HTTP request | Description |
|---|---|---|
| projectIdDelete | DELETE /project/{id} | Delete a project -- StatusCode: 501 - Not yet implemented |
| projectIdGet | GET /project/{id} | Get the information of a project |
| projectIdRecommendationsGet | GET /project/{id}/recommendations | Get recommended projects related to the specific project |
| projectIdReportPost | POST /project/{id}/report | Report a project -- StatusCode: 501 - Not yet implemented |
| projectsCategoriesGet | GET /projects/categories | Get default number of projects per category (Most downloaded etc.) |
| projectsFeaturedGet | GET /projects/featured | Get the currently featured projects |
| projectsGet | GET /projects | Get projects |
| projectsPost | POST /projects | Upload a catrobat project |
| projectsSearchGet | GET /projects/search | Search for projects associated with a keywords |
| projectsUserGet | GET /projects/user/ | Get the projects of the logged in user |
| projectsUserIdGet | GET /projects/user/{id} | Get the public projects of a given user |
# src/Acme/MyBundle/Resources/services.yml
services:
# ...
acme.my_bundle.api.projects:
class: Acme\MyBundle\Api\ProjectsApi
tags:
- { name: "open_api_server.api", api: "projects" }
# ...projectIdDelete($id)
Delete a project -- StatusCode: 501 - Not yet implemented
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
class ProjectsApi implements ProjectsApiInterface
{
// ...
/**
* Implementation of ProjectsApiInterface#projectIdDelete
*/
public function projectIdDelete(string $id)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\ProjectResponse projectIdGet($id)
Get the information of a project
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
class ProjectsApi implements ProjectsApiInterface
{
// ...
/**
* Implementation of ProjectsApiInterface#projectIdGet
*/
public function projectIdGet(string $id)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string |
OpenAPI\Server\Model\ProjectResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\ProjectResponse projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $flavor)
Get recommended projects related to the specific project
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
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)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| category | string | * `similar` - Get similar projects to the specific project * `also_downloaded` - Get projects that users who downloaded the specific project also downloaded * `more_from_user` - Get more projects from the owner of the specific project | |
| accept_language | string | [optional] | |
| 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] | |
| flavor | string | [optional] |
OpenAPI\Server\Model\ProjectResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectIdReportPost($id, $project_report_request)
Report a project -- StatusCode: 501 - Not yet implemented
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
class ProjectsApi implements ProjectsApiInterface
{
// ...
/**
* Implementation of ProjectsApiInterface#projectIdReportPost
*/
public function projectIdReportPost(string $id, ProjectReportRequest $project_report_request)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| project_report_request | OpenAPI\Server\Model\ProjectReportRequest |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\ProjectsCategory projectsCategoriesGet($max_version, $flavor, $accept_language)
Get default number of projects per category (Most downloaded etc.)
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
class ProjectsApi implements ProjectsApiInterface
{
// ...
/**
* Implementation of ProjectsApiInterface#projectsCategoriesGet
*/
public function projectsCategoriesGet(string $max_version = null, string $flavor = null, string $accept_language = null)
{
// Implement the operation ...
}
// ...
}| 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] |
| flavor | string | [optional] | |
| accept_language | string | [optional] |
OpenAPI\Server\Model\ProjectsCategory
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\FeaturedProjectResponse projectsFeaturedGet($platform, $max_version, $limit, $offset, $flavor)
Get the currently featured projects
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
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)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| platform | string | [optional] | |
| 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] | |
| flavor | string | [optional] |
OpenAPI\Server\Model\FeaturedProjectResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\ProjectResponse projectsGet($category, $accept_language, $max_version, $limit, $offset, $flavor)
Get projects
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
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)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| category | string | ||
| accept_language | string | [optional] | |
| 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] | |
| flavor | string | [optional] |
OpenAPI\Server\Model\ProjectResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
array projectsPost($checksum, $file, $accept_language, $flavor, $private)
Upload a catrobat project
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
class ProjectsApi implements ProjectsApiInterface
{
// ...
/**
* Implementation of ProjectsApiInterface#projectsPost
*/
public function projectsPost(string $checksum, UploadedFile $file, string $accept_language = null, string $flavor = null, bool $private = null)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| checksum | string | Checksum of the *.catrobat file | |
| file | UploadedFile****UploadedFile | The *.catrobat project file | |
| accept_language | string | [optional] | |
| flavor | string | The flavor of this project | [optional] |
| private | bool | Indicates whether a program should be private | [optional] |
array
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\ProjectResponse projectsSearchGet($query, $max_version, $limit, $offset, $flavor)
Search for projects associated with a keywords
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
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)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| query | string | ||
| 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] | |
| flavor | string | [optional] |
OpenAPI\Server\Model\ProjectResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\ProjectResponse projectsUserGet($max_version, $limit, $offset, $flavor)
Get the projects of the logged in user
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
class ProjectsApi implements ProjectsApiInterface
{
// ...
/**
* Implementation of ProjectsApiInterface#projectsUserGet
*/
public function projectsUserGet(string $max_version = null, int $limit = '20', int $offset = '0', string $flavor = null)
{
// Implement the operation ...
}
// ...
}| 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] | |
| flavor | string | [optional] |
OpenAPI\Server\Model\ProjectResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\ProjectResponse projectsUserIdGet($id, $max_version, $limit, $offset, $flavor)
Get the public projects of a given user
<?php
// src/Acme/MyBundle/Api/ProjectsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\ProjectsApiInterface;
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)
{
// Implement the operation ...
}
// ...
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| 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] | |
| flavor | string | [optional] |
OpenAPI\Server\Model\ProjectResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]