Menu

Web REST API

The projecterus Web REST API allows for retrieval of data. For detailed information, see our Web REST API docs.

Get authentication token

curl --location --request POST 'http://localhost:8080/PM/rest/auth'
   --header 'Accept: application/json'
   --header 'Content-Type: application/json'
   --data-raw '{
      "username": "mario.killmer@projecterus.de",
      "password": "XXXXX"
}'

After successful authentication you will get an token. The token will be valid for 12 hours.
{
"token": "eyJhbGciOiJIUzI1NiJ9........."
}

Now that you have the token for your account, you can use them to start making requests. You can make a GET request to list all the resources with :
curl --location --request GET 'http://localhost:8080/PM/rest/resourcen'
--header 'Accept: application/json'
--header 'Content-Type: application/json'
--header 'Authorization: Token eyJhbGciOiJIUzI1NiJ9........'