public List<Discussion> getSnippetDiscussions(Object projectIdOrPath, Integer snippetId) throws GitLabApiException {
        Pager<Discussion> pager = getSnippetDiscussionsPager(projectIdOrPath, snippetId, getDefaultPerPage());
        return (pager.all());
    }
public List < Discussion > getSnippetDiscussions ( Object projectIdOrPath , Integer snippetId ) throws GitLabApiException { Pager < Discussion > pager = getSnippetDiscussionsPager ( projectIdOrPath , snippetId , getDefaultPerPage ( ) ) ; return ( pager . all ( ) ) ; }
Get a list of all discussions for the specified snippet.

<pre><code>GitLab Endpoint: GET /projects/:id/snippets/:snippet_id/discussions</code></pre>

@param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param snippetId the ID of the snippet
@return a list containing all the discussions for the specified snippet
@throws GitLabApiException if any exception occurs during execution