Docs
This commit is contained in:
@@ -10,8 +10,23 @@ use Khofmann\Response\Response;
|
||||
use Khofmann\ApiError\ApiError;
|
||||
use Khofmann\Request\Request;
|
||||
|
||||
/**
|
||||
* User image route handlers
|
||||
*/
|
||||
class Image extends Api
|
||||
{
|
||||
/**
|
||||
* Image POST handler
|
||||
*
|
||||
* Set a new user image.
|
||||
*
|
||||
* Returns updated user.
|
||||
*
|
||||
* @param mixed $id User ID
|
||||
*
|
||||
* @throws 404 User not found
|
||||
* @throws 500 Failed to update user image
|
||||
*/
|
||||
public function post($id): void
|
||||
{
|
||||
// Fetch all inputs.
|
||||
@@ -33,6 +48,16 @@ class Image extends Api
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Image POST handler
|
||||
*
|
||||
* Set a new user image. User is retrieved using the authentication `token`.
|
||||
*
|
||||
* Returns updated user.
|
||||
*
|
||||
* @throws 404 User not found
|
||||
* @throws 500 Failed to update user image
|
||||
*/
|
||||
public function postSelf(): void
|
||||
{
|
||||
// Fetch all inputs.
|
||||
|
||||
Reference in New Issue
Block a user