Summary

This page demonstrates how the Content Management Service works within AppBase.

CMS Examples


ControlDescription
Actions
  1. createFolder
    • will create a folder with the given name
  2. getnode
    • will return back the description of the specified node
  3. deleteResource
    • will delete the specified resource
  4. deleteFolder
    • will delete the specified folder
  5. createResource
    • will create the spedified resource
  6. getResource
    • will return back the description of the specified resource
  7. zip
    • will zip the specified resource
DomainAutomatically loaded based on solution
ValueThe name of the folder, written thus: “/folder1“
Set PathWhen trying to upload a resource to specific folder, set path here
Upload a fileUpload a resource here
Just Build URLWill only product a URL in the Resulting URL textarea
Build URL and ExecuteWill build URL and generate a response
Resulting URLFind the resulting URL here
ResponseFind the response here; when correct error code will be 0 and error message will be null

Use Case

  1. Select createFolder from Actions
  2. For Value, add /TestFolder1
  3. Click Build URL and Execute
  4. You should see the following output
    1. Resulting URL: http://soldevqa03:8084/CMS.WebService/CMSServiceRest.svc/createFolder/Examples_Development.tenant?t=BA30DIOT1p8l5u3svet1t%2fvsuffviQ6T3PD80Ge1p8l5u3sJxcPPHyQ4yYDuhZM9gVbUl56JVK822Y&u=/TestFolder1
    2. Response: {"Url":"/TestFolder1","ErrorCode":0,"ErrorMessage":null}
  5. Now select getnode is Actions and click Build URL and Execute
    1. Resulting URL: http://soldevqa03:8084/CMS.WebService/CMSServiceRest.svc/getnode/Examples_Development.tenant?t=BA30DIOT1p8l5u3svet1t%2fvsuffviQ6T3PD80Ge1p8l5u3sJxcPPHyQ4yYDuhZM9gVbUl56JVK822Y&u=/TestFolder1
    2. Response: {"Node":{"Name":"TestFolder1","CreatedDate":new Date(1366158035805),"CreatedBy":null,"ModifiedDate":new Date(1366158035805),"ModifiedBy":null},"ErrorCode":0,"ErrorMessage":null}
  6. Now select deleteFolder and click Build URL and Execute
    1. Resulting URL:http://soldevqa03:8084/CMS.WebService/CMSServiceRest.svc/deleteFolder/Examples_Development.tenant?t=BA30DIOT1p8l5u3svet1t%2fvsuffviQ6T3PD80Ge1p8l5u3sJxcPPHyQ4yYDuhZM9gVbUl56JVK822Y&u=/TestFolder1
    2. Response: {"ErrorCode":0,"ErrorMessage":null}

 

 

 

  • No labels