REST API GET 'No Router defined' problems

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2013 12:16 PM
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:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2013 03:52 AM
"url" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
So try escaping the colons, that could help…
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2013 03:52 AM


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2013 09:39 AM
http://localhost/activiti-rest/service/process-definitions/ask_for_leave%3A1%3A4
But the problem always in there. T_T

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2013 10:28 AM
I typing wrong url:
I use
GET http://localhost/activiti-rest/service/process-definitions
to get the correct data, so I think maybe the
GET http://localhost/activiti-rest/service/process-definitions/ask_for_leave:1:4
is correct too.
But the truth uri is
http://localhost/activiti-rest/service/repository/process-definitions/ask_for_leave:1:4
I missed repository in my uri.
Sorry guys.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2014 04:41 AM
but the response is
{
errorMessage: "No router defined",
statusCode: 500
}
Please assist

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 04:44 AM
Include activiti-rest.war file in webapp folder

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2016 04:45 AM
I also face same issue, including activiti-rest.war file in webapp folder resolved the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2014 05:20 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2016 03:10 PM
