List discussion comments (Legacy)
GET {{baseUrl}}/teams/:team_id/discussions/:discussion_number/comments?direction=desc&per_page=30&page=1
Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new List discussion comments endpoint.
List all comments on a team discussion. OAuth access tokens require the read:discussion
scope.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
direction | string | One of asc (ascending) or desc (descending). | |
per_page | number | Results per page (max 100) | |
page | number | Page number of the results to fetch. |
RESPONSES
status: OK
[{"author":{"login":"octocat","id":1,"node_id":"MDQ6VXNlcjE=","avatar_url":"https://github.com/images/error/octocat_happy.gif","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"body":"Do you like apples?","body_html":"\u003cp\u003eDo you like apples?\u003c/p\u003e","body_version":"5eb32b219cdc6a5a9b29ba5d6caa9c51","created_at":"2018-01-15T23:53:58Z","last_edited_at":null,"discussion_url":"https://api.github.com/teams/2403582/discussions/1","html_url":"https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1","node_id":"MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=","number":1,"updated_at":"2018-01-15T23:53:58Z","url":"https://api.github.com/teams/2403582/discussions/1/comments/1","reactions":{"url":"https://api.github.com/teams/2403582/discussions/1/reactions","total_count":5,"+1":3,"-1":1,"laugh":0,"confused":0,"heart":1,"hooray":0,"eyes":1,"rocket":1}}]