To list the properties of a repository item, send a 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 and the identifier of the specific item at the end of the path.

The following example shows a REST Web Services request that lists the properties of a specific repository item 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/130001/

* 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/130001/ 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:40:51 GMT
<
<?xml version="1.0" encoding="UTF-8"?>

<atgResponse>
  <repositoryId>130001</repositoryId>
  <securityStatus>4</securityStatus>

[Additional property values omitted to save space]

  <ThirtySomethings>false</ThirtySomethings>
  <MenOnly>false</MenOnly>
  <Fashionista>false</Fashionista>
  <Young>false</Young>
  <WomenOnly>false</WomenOnly>
</atgResponse>
* Connection #0 to host myserver left intact
* Closing connection #0