REST API GET 'No Router defined' problems

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2013 12:16 PM
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.
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.
Labels:
- Labels:
-
Archive
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2016 05:34 AM
Sorry, 5.14 is from 2013 … no idea anymore what was up then.
