The URLs for Oracle ATG Web Commerce platform REST Web Services are the locations to which you address HTTP requests. URLs are central to REST Web Services and you will access different components and functions of the Oracle ATG Web Commerce platform using the specific URL for each one.

The application path in the Oracle ATG Web Commerce platform REST Web Service URLs starts with /rest/. The application path is the portion of a URL that follows the hostname and port number. For example, you can use the following URL to request the value of the running property of the atg/dynamo/Configuration component.

http://servername:port/rest/bean/atg/dynamo/Configuration/running

The portion of the application path following /rest/ identifies the specific component you are addressing. This part of the URL is based on the component pathnames of Nucleus components and repository items. See information about component paths in the ATG Platform Programming Guide.

Nucleus Components

The URL for addressing a Nucleus component with the REST Web Services includes /bean/ in its application path. The following example shows the beginning of the URL for a Nucleus component.

http://servername:port/rest/bean/

You can invoke methods and get or set property values of Nucleus components. Include the names of methods and properties in the application path of the component. Separate the name of the method or property with a forward slash as if it were a separate container. For example, the following URL addresses the running property of the atg/dynamo/Configuration component.

http://servername:port/rest/bean/atg/dynamo/Configuration/running

See information about performing operations with Nucleus component properties and methods in Working with Component Properties and Invoking Component Methods.

Repositories

The URL for addressing a repository item with the REST Web Services includes /repository/ in its application path. The following example shows the beginning of the URL for a repository item.

http://servername:port/rest/repository/

You can address specific repository items and get or set repository item property values. Include the names of repository items and values in the application path. Separate the names and values with a forward slash as if it were a separate container. For example, the following URL addresses the user repository item in the ProfileAdapterRepository repository.

http://servername:port/rest/repository/atg/userprofiling/
ProfileAdapterRepository/user

The following URL addresses a specific user record in the user repository item. The value of the id property at the end of the path indicates which user.

http://servername:port/rest/repository/atg/userprofiling/
ProfileAdapterRepository/user/210002

The following URL addresses a specific property of a user record in the user repository item.

http://servername:port/rest/repository/atg/userprofiling/
ProfileAdapterRepository/user/210002/login

See information about performing operations with repositories in Working with Repositories.