All URIs are relative to https://share.catrob.at/api
Method | HTTP request | Description |
---|---|---|
notificationIdReadPut | PUT /notification/{id}/read | Mark specified notification as read |
notificationsCountGet | GET /notifications/count | Count the number of unseen notifications |
notificationsGet | GET /notifications | Get user notifications -- StatusCode: 501 - Not yet implemented |
notificationsReadPut | PUT /notifications/read | Mark all notifications as read |
# config/services.yaml
services:
# ...
Acme\MyBundle\Api\NotificationsApi:
tags:
- { name: "open_api_server.api", api: "notifications" }
# ...
notificationIdReadPut($id, $accept_language)
Mark specified notification as read
<?php
// src/Acme/MyBundle/Api/NotificationsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\NotificationsApiInterface;
class NotificationsApi implements NotificationsApiInterface
{
// ...
/**
* Implementation of NotificationsApiInterface#notificationIdReadPut
*/
public function notificationIdReadPut(int $id, string $accept_language, int &$responseCode, array &$responseHeaders): void
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | [default to 0] | |
accept_language | string | [optional] [default to 'en'] |
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\NotificationsCountResponse notificationsCountGet()
Count the number of unseen notifications
<?php
// src/Acme/MyBundle/Api/NotificationsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\NotificationsApiInterface;
class NotificationsApi implements NotificationsApiInterface
{
// ...
/**
* Implementation of NotificationsApiInterface#notificationsCountGet
*/
public function notificationsCountGet(int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
This endpoint does not need any parameter.
OpenAPI\Server\Model\NotificationsCountResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\NotificationResponse notificationsGet($accept_language, $limit, $offset, $attributes, $type)
Get user notifications -- StatusCode: 501 - Not yet implemented
<?php
// src/Acme/MyBundle/Api/NotificationsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\NotificationsApiInterface;
class NotificationsApi implements NotificationsApiInterface
{
// ...
/**
* Implementation of NotificationsApiInterface#notificationsGet
*/
public function notificationsGet(string $accept_language, int $limit, int $offset, string $attributes, string $type, int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
accept_language | string | [optional] [default to 'en'] | |
limit | int | [optional] [default to 20] | |
offset | int | [optional] [default to 0] | |
attributes | string | [optional] [default to ''] | |
type | string | [optional] [default to 'all'] |
OpenAPI\Server\Model\NotificationResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
notificationsReadPut()
Mark all notifications as read
<?php
// src/Acme/MyBundle/Api/NotificationsApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\NotificationsApiInterface;
class NotificationsApi implements NotificationsApiInterface
{
// ...
/**
* Implementation of NotificationsApiInterface#notificationsReadPut
*/
public function notificationsReadPut(int &$responseCode, array &$responseHeaders): void
{
// Implement the operation ...
}
// ...
}
This endpoint does not need any parameter.
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]