The examples are made with tool SoapUI, which is a useful tool to try out the API functionality.
GetActivities - example
In the example below, we call the function GetActivities. The caller is authenticated by username and password.
As call filters it’s defined that we want to have all the non-deleted activities for persons ‘Estonia Manager’ and ‘Office1 Tallinn’ and dates between 2018-05-10 and 2018-05-15. On the right-hand side, we can see 2 activities returned based on the set filters.
GetAccrualValuesForUser - example
In the example below, we call the function GetAccrualValuesForUser. The caller is authenticated by username and password.
The date 2020-06-02 of the accrual values is set on on the call. On the right-hand side, we can see 1 accrual value returned by the call. The accrual value ‘Saldo’ for person number 7545 on this date is 3 hours 43 minutes and it has decreased 57 minutes on that date.
InsertProjects - example
EnsureProjectExistsV3 - example
In the example below, we call the function EnsureProjectExistsV3. The caller is authenticated by username and password.
The request ensures that the project with code 'MY_CODE' is in the service with the information of the request. The project will be updated with two project managers. One of the project managers has a username of 'Username XXX' and the other has a personnelnumber of '1234567890'. As RemoveOthers - element value is set to be "true", request will remove existing project managers from the project, if the project exists in Nepton and it had existing project managers not added as project managers for the project in the request. If existing project managers should not be removed, RemoveOthers - element can be omitted from the request.