Copying resources for the API (RESTful) Role
Add resources to your Web site's Web application.
Procedure
- Access your installation media and navigate to the folder Content Delivery\roles\.
- Navigate to the api\rest\ subfolder.
- Do one of the following:
- When adding this Role to a .NET Web site, navigate to the dotnet\ subfolder.
- When adding this Role to a Java/JSP Web site, navigate to the java\ subfolder.
- From the config\ subfolder, do one of the following:
- When adding this Role to a .NET Web site, copy cd_ambient_conf.xml to bin\config\.
- When adding this Role to a Java/JSP Web site, copy cd_ambient_conf.xml to WEB-INF/classes/, and additionally copy cd_client_conf.xml and logback.xml to the same location.
- When adding this Role to a .NET Web site, also do one of the following:
- If your .NET Web application does not have any customizations applied to its Web.config file, copy the file Web.config from the installation media to the .NET Web application root location, over the existing file.
- If your .NET Web application does have customizations applied to its Web.config file, open the file Web.config on the installation media and merge its contents into the Web.config in the .NET Web application root location.
- Alternatively, when adding this Role to a Java/JSP Web site, do one of the following:
- If your Java/JSP Web application does not have any customizations applied to its web.xml file, copy the file web.xml from the installation media to the Java/JSP Web application root location, over the existing file.
- If your Java/JSP Web application does have customizations applied to its web.xml file, open the file web.xml on the installation media and merge its contents into the web.xml in the Java/JSP Web application root location.
- If you are adding this Role to a Java/JSP website, and you have chosen not to reference the online Content Interaction Libraries (CILs) on Maven from a pom.xml file, copy the contents of the java\lib\ subfolder to the website's WEB-INF/lib/ folder.
- If you are adding the Role to a .NET website, and you have chosen not to reference the online Content Interaction Libraries (CILs) on Nuget from your Visual Studio project, copy the contents of the dotnet\bin\ subfolder to the website's bin\ folder on your target machine.