cancel
Showing results for 
Search instead for 
Did you mean: 

REST API GET 'No Router defined' problems

alvin_ge
Champ in-the-making
Champ in-the-making
Sorry guys, I'm a new activiti user, I was trying use activiti-rest API, but when I tested the URI just like this:

GET http://localhost/activiti-rest/service/process-definitions

then the rest API returned me correct data:

<javascript>
{
    "data": [{
        "id": "ask_for_leave:1:4",
        "key": "ask_for_leave",
        "name": "xxx",
        …

    }],
    "total": 1,
    "start": 0,
    "sort": "id",
    "order": "asc",
    "size": 1
}
</javascript>

But if I want to query the process using this URI:

GET http://localhost/activiti-rest/service/process-definitions/ask_for_leave:1:4

then the rest API returned me an error:

<javascript>
{
    "errorMessage": "No router defined",
    "statusCode": 500
}
</javascript>

I'm sure I gave the rest app an authorization in header with basic auth (kermit/kermit):

Basic a2VybWl0Omtlcm1pdA==

What should I do? Maybe I miss something.

BTW: I use chrome plugin (REST console) to test the API.
10 REPLIES 10

jbarrez
Star Contributor
Star Contributor
Sorry, 5.14 is from 2013 … no idea anymore what was up then.