api~ProfilesRestAPI()

new ProfilesRestAPI()

Constructs the ProfilesRestAPI.

Methods

createProfile()

Creates a new profile. Returns HTTP status code 201 and the profile object if the profile was created. Returns HTTP status code 409 if the profile already exists Returns HTTP status code 400 if the request has wrong parameters Returns HTTP status code 500 if the profile couldn't be created

dumpProfilesTree()

Dumps the subtree of the instance.

listProfiles()

Lists all profiles.

removeProfile()

Removes the profile with the given name. Returns HTTP status code 204 if the profile was successfully removed Returns HTTP status code 404 if there is no profile with the given name.

switchToProfile()

Switches to the profile with the given name. Returns the profile object. Returns HTTP status code 404 if there is no profile with the given name. Returns HTTP status code 500 if switching failed.