AnsweredAssumed Answered

REST API GET 'No Router defined' problems

Question asked by alvin_ge on Dec 16, 2013
Latest reply on Dec 28, 2016 by kohir_rajesh@yahoo.com
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.

Outcomes