AnsweredAssumed Answered

Trying to check out Doc with Rest api

Question asked by erictice on Jun 8, 2009
Latest reply on Jun 9, 2009 by erictice
Alright,  I am using the following to check out a file from the api.  It returns the atom/xml  but doesn't checkout the doc. 

GetMethod method = new GetMethod(
      "http://<hostname>:<port>/alfresco/service/api/node/workspace/SpacesStore/48bd0658-1261-4b0a-a74c-3d57b8094208/checkedout");
      HttpClient client = new HttpClient();
      client.getParams().setAuthenticationPreemptive(true);
      Credentials defaultcreds = new UsernamePasswordCredentials("admin",
            "admin");
      client.getState().setCredentials(AuthScope.ANY, defaultcreds);
      // Send POST request
      int statusCode = client.executeMethod(method);

the api doc is limited.  Any help would be appreciated.

Outcomes