In this article, I would like to present a method for retrieving the list of active Projects in SDL WorldServer using the REST API.
The method takes two parameters:
- wsBaseUrl
- token
The wsBaseUrl must be the <serverURL>:<portnumber> where your WorldServer instance is running.
The second parameter is a security token, which can be retrieved by using the SDL WorldServer REST API as explained here.
The method returns a List of Project objects, one for each active project, containing a subset of the JSON response data.