Docs
This commit is contained in:
@@ -9,8 +9,20 @@ use Khofmann\Response\Response;
|
||||
use Khofmann\ApiError\ApiError;
|
||||
use Khofmann\Input\Input;
|
||||
|
||||
/**
|
||||
* User posts route handlers
|
||||
*/
|
||||
class Posts extends Api
|
||||
{
|
||||
/**
|
||||
* Posts GET handler
|
||||
*
|
||||
* Lists posts for a user. Optional parameters are `l` (limit of returned list), `p` (page, i.e. offset), `s` (sort order).
|
||||
*
|
||||
* Returns list of posts.
|
||||
*
|
||||
* @throws 404 User not found
|
||||
*/
|
||||
public function get($id): void
|
||||
{
|
||||
// Fetch and constrain all parameters.
|
||||
|
||||
Reference in New Issue
Block a user