public List < Snippet > getSnippets ( boolean downloadContent ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "snippets" ) ; List < Snippet > snippets = ( response . readEntity ( new GenericType < List < Snippet > > ( ) { } ) ) ; if ( downloadContent ) { for ( Snippet snippet : snippets ) { snippet . setContent ( getSnippetContent ( snippet . getId ( ) ) ) ; } } return snippets ; }
Get a list of the authenticated user s snippets .