Summary
This page demonstrates how the Content Management Service works within AppBase.
CMS Examples
Control | Description |
---|---|
Actions |
|
Domain | Automatically loaded based on solution |
Value | The name of the folder, written thus: “/folder1“ |
Set Path | When trying to upload a resource to specific folder, set path here |
Upload a file | Upload a resource here |
Just Build URL | Will only product a URL in the Resulting URL textarea |
Build URL and Execute | Will build URL and generate a response |
Resulting URL | Find the resulting URL here |
Response | Find the response here; when correct error code will be 0 and error message will be null |
Use Case
- Select createFolder from Actions
- For Value, add /TestFolder1
- Click Build URL and Execute
- You should see the following output
- Resulting URL: http://soldevqa03:8084/CMS.WebService/CMSServiceRest.svc/createFolder/Examples_Development.tenant?t=BA30DIOT1p8l5u3svet1t%2fvsuffviQ6T3PD80Ge1p8l5u3sJxcPPHyQ4yYDuhZM9gVbUl56JVK822Y&u=/TestFolder1
- Response: {"Url":"/TestFolder1","ErrorCode":0,"ErrorMessage":null}
- Now select getnode is Actions and click Build URL and Execute
- Resulting URL: http://soldevqa03:8084/CMS.WebService/CMSServiceRest.svc/getnode/Examples_Development.tenant?t=BA30DIOT1p8l5u3svet1t%2fvsuffviQ6T3PD80Ge1p8l5u3sJxcPPHyQ4yYDuhZM9gVbUl56JVK822Y&u=/TestFolder1
- Response: {"Node":{"Name":"TestFolder1","CreatedDate":new Date(1366158035805),"CreatedBy":null,"ModifiedDate":new Date(1366158035805),"ModifiedBy":null},"ErrorCode":0,"ErrorMessage":null}
- Now select deleteFolder and click Build URL and Execute
- Resulting URL:http://soldevqa03:8084/CMS.WebService/CMSServiceRest.svc/deleteFolder/Examples_Development.tenant?t=BA30DIOT1p8l5u3svet1t%2fvsuffviQ6T3PD80Ge1p8l5u3sJxcPPHyQ4yYDuhZM9gVbUl56JVK822Y&u=/TestFolder1
- Response: {"ErrorCode":0,"ErrorMessage":null}