All URIs are relative to https://share.catrob.at/api
Method | HTTP request | Description |
---|---|---|
userDelete | DELETE /user | Delete user account |
userGet | GET /user | Get your private user data |
userIdGet | GET /user/{id} | Get public user data |
userPost | POST /user | Register |
userPut | PUT /user | Update User |
userResetPasswordPost | POST /user/reset-password | Request email to reset password |
usersGet | GET /users | Get users |
usersSearchGet | GET /users/search | Search for users |
# config/services.yaml
services:
# ...
Acme\MyBundle\Api\UserApi:
tags:
- { name: "open_api_server.api", api: "user" }
# ...
userDelete()
Delete user account
Delete your user account. But be warned, there is no way to restore the user data!
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#userDelete
*/
public function userDelete(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]
OpenAPI\Server\Model\ExtendedUserDataResponse userGet()
Get your private user data
Get your private user data. Additionally to the public user data, this responses contains all your private data like settings.
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#userGet
*/
public function userGet(int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
This endpoint does not need any parameter.
OpenAPI\Server\Model\ExtendedUserDataResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\BasicUserDataResponse userIdGet($id)
Get public user data
Get all the public data of a user
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#userIdGet
*/
public function userIdGet(string $id, int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
id | string |
OpenAPI\Server\Model\BasicUserDataResponse
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\JWTResponse userPost($register_request, $accept_language)
Register
Register a user. For pre-validation use the dry-run option. Using Dry run the request is validated but no object is created on the server.
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#userPost
*/
public function userPost(RegisterRequest $register_request, string $accept_language, int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
register_request | OpenAPI\Server\Model\RegisterRequest | ||
accept_language | string | [optional] [default to 'en'] |
OpenAPI\Server\Model\JWTResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
array userPut($update_user_request, $accept_language)
Update User
Update your user account. All attributes are optional. For example you can update only the username. Or you can update multiple attributes at once. E.g. username + email.
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#userPut
*/
public function userPut(UpdateUserRequest $update_user_request, string $accept_language, int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
update_user_request | OpenAPI\Server\Model\UpdateUserRequest | ||
accept_language | string | [optional] [default to 'en'] |
array
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
array userResetPasswordPost($reset_password_request, $accept_language)
Request email to reset password
If an account with the provided email exists, an email to reset the password will be sent to the user. The email contains a link to reset the password. Note: This link is only valid for a limited amount of time.
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#userResetPasswordPost
*/
public function userResetPasswordPost(ResetPasswordRequest $reset_password_request, string $accept_language, int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
reset_password_request | OpenAPI\Server\Model\ResetPasswordRequest | ||
accept_language | string | [optional] [default to 'en'] |
array
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OpenAPI\Server\Model\BasicUserDataResponse usersGet($query, $limit, $offset)
Get users
Get all users with their corresponding data
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#usersGet
*/
public function usersGet(string $query, int $limit, int $offset, int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
query | string | ||
limit | int | [optional] [default to 20] | |
offset | int | [optional] [default to 0] |
OpenAPI\Server\Model\BasicUserDataResponse
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\BasicUserDataResponse usersSearchGet($query, $limit, $offset, $attributes)
Search for users
Search for users associated by keywords.
<?php
// src/Acme/MyBundle/Api/UserApiInterface.php
namespace Acme\MyBundle\Api;
use OpenAPI\Server\Api\UserApiInterface;
class UserApi implements UserApiInterface
{
// ...
/**
* Implementation of UserApiInterface#usersSearchGet
*/
public function usersSearchGet(string $query, int $limit, int $offset, string $attributes, int &$responseCode, array &$responseHeaders): array|object|null
{
// Implement the operation ...
}
// ...
}
Name | Type | Description | Notes |
---|---|---|---|
query | string | ||
limit | int | [optional] [default to 20] | |
offset | int | [optional] [default to 0] | |
attributes | string | [optional] [default to ''] |
OpenAPI\Server\Model\BasicUserDataResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]