Hi All,
When I call the rest api to get details of a task as shown below, it gives the error in blockquote:
http://localhost:8080/rest/engine/task/99d6cb49-4afe-11e9-aaf4-f83441629f6b/
Please help.
Thanks.
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Mar 20 15:15:28 GST 2019
There was an unexpected error (type=Not Found, status=404).
No message available
Niall
March 20, 2019, 12:01pm
2
Why have you decided to use that endpoint?
it’s for testing purpose only
Niall
March 20, 2019, 12:03pm
4
I mean, why are you using that end point specifically? Is there a reason why you’re not using the standard REST API endpoint?
in fact i got the end point on the following post: https://blog.camunda.com/post/2015/08/start-and-complete-process-with-rest-api/
but what is the standard rest api endpoint?
Thanks.
Niall
March 20, 2019, 12:10pm
6
In that post the endpoint i used is:
http://localhost:8080/engine-rest/
And the endpoint you said you’re using is :
http://localhost:8080/rest/engine/
The reason i’m asking is because i wanted to check if there might have been some misleading documentation that lead you to that endpoint that i might be able to fix. But i think it might have just been a typo
If you use the first endpoint then it should hopefully work.
So if I call the link http://localhost:8080/engine-rest/ … in Google Chrome, will it work?
Niall
March 20, 2019, 12:51pm
8
Thats just the endpoint - you would then add the call you want to make, so if you want to get tasks you would use
http://localhost:8080/engine-rest/task
EDIT: unless you’re using springboot which for some reason would be
http://localhost:8080/rest/task
probably I already know the answer but just requesting a confirmation, the
http://localhost:8080/rest/task / http://localhost:8080/engine-rest/task
will not work until I have camunda-bpm-spring-boot-starter-rest library in my project?
Right?
@Anuj28282828 you must have the dependency camunda-bpm-spring-boot-starter-rest in your project and access it via http://localhost:8080/rest
what about webapp?
I have built my project using camunda-bpm-spring-boot-starter-webapp, I should be able to see the Applications like Cockpit and others, right?
Niall
September 19, 2019, 7:14am
12
consider using this little getting started screen to build your spring boot project. this will ensure that you don’t forget components you need.
Hi Niall - Thanks much for your reply. I do have all the components I need.
I do have spring-security/camunda-webapp. But still the apps are not really coming up on my machine.
Niall
September 20, 2019, 6:31am
14
Can you be more specific about what you’ve tried and what you’re seeing?
Hi Niall - I have described a bit on this post - Errors while deploying starter Spring-Boot