class Discussion
Properties
| protected Client | $api |
|
||
| protected UrlGenerator | $url |
|
||
| protected Factory | $view |
|
Methods
getApiDocument(ServerRequestInterface $request, string $id, array $params)
Get the result of an API request to show a discussion.
getPostsApiDocument(ServerRequestInterface $request, array $params)
Get the result of an API request to list one page of a discussion's posts.
Details
at
line 42
__construct(Client $api, UrlGenerator $url, Factory $view)
at
line 138
protected
getApiDocument(ServerRequestInterface $request, string $id, array $params)
Get the result of an API request to show a discussion.
at
line 161
protected
getPostsApiDocument(ServerRequestInterface $request, array $params)
Get the result of an API request to list one page of a discussion's posts.
The primary data of this response is exactly the posts being asked for, so unlike the discussion endpoint's `included`, extensions cannot add posts of their own to it.