![]() |
Index of Web Scripts Lifecycle '/public_api' |
| Alfresco Community v3.2.0 (2039) |
| 7 Web Scripts |
| Back to Web Scripts Home |
| Up to lifecycle / |
| GET /alfresco/service/api/login?u={username}&pw={password?} |
| --- |
| Login and establish a ticket. Input
Returns the new authentication ticket. |
| --- |
| Authentication: | none |
| Transaction: | required |
| Format Style: | any |
| Default Format: | xml |
| Lifecycle: | public_api |
| Id: | org/alfresco/repository/login.get |
| Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/login.get.desc.xml |
| POST /alfresco/service/api/login |
| --- |
| Login and establish a ticket. Input JSON Data Object.
Returns the new authentication ticket. |
| --- |
| Authentication: | none |
| Transaction: | required |
| Format Style: | any |
| Default Format: | json |
| Lifecycle: | public_api |
| Id: | org/alfresco/repository/login.post |
| Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/login.post.desc.xml |
| DELETE /alfresco/service/api/login/ticket/{ticket} |
| --- |
| Logout, Delete Login Ticket. After the user has logged out the ticket is no longer valid and subsequent attempts to use it will fail. |
| --- |
| Authentication: | user |
| Transaction: | required |
| Format Style: | any |
| Default Format: | xml |
| Lifecycle: | public_api |
| Id: | org/alfresco/repository/loginticket.delete |
| Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/loginticket.delete.desc.xml |
| GET /alfresco/service/api/login/ticket/{ticket} |
| --- |
| Validates the specified ticket is still valid. The ticket may be invalid, or expired, or the user may have been locked out. For security reasons this script will not validate the ticket of another user.
|
| --- |
| Authentication: | user |
| Transaction: | required |
| Format Style: | any |
| Default Format: | xml |
| Lifecycle: | public_api |
| Id: | org/alfresco/repository/loginticket.get |
| Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/loginticket.get.desc.xml |
| --- |
| --- |
| Authentication: | guest |
| Transaction: | required |
| Format Style: | argument |
| Default Format: | atomentry |
| Lifecycle: | public_api |
| Id: | org/alfresco/repository/store/content.delete |
| Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/store/content.delete.desc.xml |
| --- |
| The service returns the content-stream for a document. This is the only service that returns content-stream. Inputs: ID documentId: Document to return the content-stream (Optional) Integer offset: (Optional) Integer length: Outputs: Byte[] stream Notes: Some CMIS protocol bindings MAY choose not to explicitly implement a “getContentStream” method, in cases where the protocol itself provides built-in mechanisms for retrieving byte streams. (E.g. in the ATOM/REST binding, content streams may be retrieved via standard HTTP gets on an “edit-media” URL, rather than a CMIS-specific “getContentStream” URL). See Part II of the CMIS specification for additional details. Each CMIS protocol binding will provide a way for fetching a sub-range within a content stream, in a manner appropriate to that protocol. |
| --- |
| Authentication: | guest |
| Transaction: | required |
| Format Style: | argument |
| Default Format: | Determined at run-time |
| Lifecycle: | public_api |
| Id: | org/alfresco/repository/store/content.get |
| Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml |
| POST /alfresco/service/api/upload |
| --- |
| Upload file content and meta-data into repository. HTML form data
Return content
Return status: STATUS_OK (200) |
| --- |
| Authentication: | user |
| Transaction: | required |
| Format Style: | any |
| Default Format: | json |
| Lifecycle: | public_api |
| Id: | org/alfresco/repository/upload/upload.post |
| Descriptor: | classpath:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.desc.xml |