public List<LicenseTemplate> getAllLicenseTemplates() throws GitLabApiException {
        Response response = get(Response.Status.OK, null, "licenses");
        return (response.readEntity(new GenericType<List<LicenseTemplate>>() {}));
    }
public List < LicenseTemplate > getAllLicenseTemplates ( ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "licenses" ) ; return ( response . readEntity ( new GenericType < List < LicenseTemplate > > ( ) { } ) ) ; }
Get all license templates.

GET /licenses

@return a list of LicenseTemplate instances
@throws GitLabApiException if any exception occurs