public Project getProject(String namespace, String project) throws GitLabApiException {

        if (namespace == null) {
            throw new RuntimeException("namespace cannot be null");
        }

        if (project == null) {
            throw new RuntimeException("project cannot be null");
        }

        String projectPath = null;
        try {
            projectPath = URLEncoder.encode(namespace + "/" + project, "UTF-8");
        } catch (UnsupportedEncodingException uee) {
            throw (new GitLabApiException(uee));
        }

        Response response = get(Response.Status.OK, null, "projects", projectPath);
        return (response.readEntity(Project.class));
    }
public Project getProject ( String namespace , String project ) throws GitLabApiException { if ( namespace == null ) { throw new RuntimeException ( "namespace cannot be null" ) ; } if ( project == null ) { throw new RuntimeException ( "project cannot be null" ) ; } String projectPath = null ; try { projectPath = URLEncoder . encode ( namespace + "/" + project , "UTF-8" ) ; } catch ( UnsupportedEncodingException uee ) { throw ( new GitLabApiException ( uee ) ) ; } Response response = get ( Response . Status . OK , null , "projects" , projectPath ) ; return ( response . readEntity ( Project . class ) ) ; }
Get a specific project, which is owned by the authentication user.

<pre><code>GET /projects/:id</code></pre>

@param namespace the name of the project namespace or group
@param project the name of the project to get
@return the specified project
@throws GitLabApiException if any exception occurs