To list the items of a type in a repository, send a Legacy REST Web Services request as described in the following table.

Request Component

Value

HTTP Method

GET

Functional Parameters

None

URL

Include the component pathname of the repository in the application path after /rest/repository/. Include the name of the item type at the end of the path.

The following example shows a Legacy REST Web Services request that lists the repository items of the user item type in the atg/userprofiling/ProfileAdapterRepository repository.

curl -v -b cookies.txt -X GET \
http://myserver:8080/rest/repository/atg/userprofiling/ProfileAdapterRepository/
user

* About to connect() to myserver port 8080 (#0)
*   Trying 12.34.567.890... connected
* Connected to myserver (12.34.567.890) port 8080 (#0)
> GET /rest/repository/atg/userprofiling/ProfileAdapterRepository/user HTTP/1.1
> User-Agent: curl/7.21.1 (i386-pc-win32) libcurl/7.21.1 zlib/1.2.5
> Host: myserver:8080
> Accept: */*
> Cookie: DYN_USER_ID=140001; JSESSIONID=46E252A84E611BCD06710FD6A0FBA5A4;
DYN_USER_CONFIRM=2a952017db56aab256c7e7077bf1feec
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
< X-ATG-Version: version=
QVRHUGxhdGZvcm0vMTAuMCxDb21tZXJjZVJlZmVyZW5jZVN0b3JlLzEwLjAgWyBQbGF0Zm9ybUxpY2Vuc
2UvMCBCMkNMaWNlbnNlLzAgIF0=
< Content-Type: application/xml;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Fri, 29 Oct 2010 16:27:49 GMT
<
<?xml version="1.0" encoding="UTF-8"?>

<atgResponse>
  <user>
    <element>http://myserver:8080/rest/repository/atg/userprofiling/
ProfileAdapterRepository/user/se-570040</element>
    <element>http://myserver:8080/rest/repository/atg/userprofiling/
ProfileAdapterRepository/user/120001</element>
    <element>http://myserver:8080/rest/repository/atg/userprofiling/
ProfileAdapterRepository/user/140001</element>
  </user>
</atgResponse>
* Connection #0 to host myserver left intact
* Closing connection #0

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices