Calling the REST APIs

The EnterWorks REST APIs can be called using two different methods:

  • URL: http://<webhost>/webcm/rest/groups/api

    It will return JSON objects for all groups in the format of:

    [{ 
    	"name": "01_Peer_Training",
    	"description": "" 
     },
     { 
     	"name": "22deb",
    	"description": "e1"
     }]
  • Java API: public GroupDTO[] getGroupList(TokenDTO token) throws RemoteException

    The base URL is: http://<webhost>/webcm/rest/api

    It will return a list of GroupDTO objects containing the same data that is returned when you call the service using the URL.

Sample Endpoints

The following sample endpoints are available in the EnterWorks APIs and can be used to test your system once you have obtained an authorization token:

  • http://<webhost>/webcm/rest/api/groups – Retrieves a paged list of available groups.

  • http://<webhost>/webcm/rest/api/codeSets – Retrieves a list of available code sets.

  • http://<webhost>/webcm/rest/api/repositories – Retrieves a list of all available repositories.

  • http://<webhost>/webcm/rest/api/items/export/fileFormats – Retrieves a list of file format options available in a repository, such as .xls, .csv, or JSON.