ACSCE-5X practice question 14 of 15

Which of the following URLs are a valid base for accessing the Alfresco 5.2 Rest API for an Alfresco repository accessible via the URL http://server/alfresco? (Choose two.)

Full set: 87 questions
Answer options
A: http://server/alfresco/s Correct answer
B: http://server/alfresco/restful
C: http://server/alfresco/script
D: http://server/alfresco/ws
E: http://server/alfresco/service Correct answer
Correct Answer:
A. http://server/alfresco/s; E. http://server/alfresco/service
Explanation

The Alfresco 5.2 REST API, specifically the Repository-level API, is built upon the Web Script Framework. The framework's dispatcher servlet, which handles incoming RESTful calls, is mapped to two primary URL patterns by default. The base URL http://server/alfresco/service is the main entry point for web scripts. Additionally, http://server/alfresco/s is provided as an alias for /service that enforces authentication for the web script call. Both are valid base URLs for accessing the web script-based REST API.

Why Incorrect

B. http://server/alfresco/restful: This is not a default or standard base URL for any of the REST APIs provided with Alfresco 5.2.
C. http://server/alfresco/script: This URL pattern is not used by the Web Script Framework; the correct patterns are /service and /s.
D. http://server/alfresco/ws: This base URL is reserved for the Alfresco SOAP (Simple Object Access Protocol) Web Services, not the REST API.

References

1. Alfresco Content Services 5.2 Documentation, "Web script dispatcher": This official documentation page details the configuration of the web script dispatcher servlet. It explicitly states the URL mappings: "The Web Script Framework is bound to the URL /service/ and /s/ by the web script dispatcher servlet." This confirms that both /service (E) and /s (A) are correct base URLs.

Source: Alfresco Content Services 5.2 Documentation > Developing > Web Scripts > Web Script Framework > Dispatcher.

2. Alfresco Content Services 5.2 Documentation, "Web Services": This section describes the SOAP-based web services. It provides examples of WSDL URLs, such as http://localhost:8080/alfresco/ws/API/Repository?wsdl, which confirms that the /ws path (D) is designated for SOAP Web Services, not REST.

Source: Alfresco Content Services 5.2 Documentation > Developing > Integrations > Web Services.

Scroll to Top