How to get crawling info via curl

(from github.com/ECJansen)
I see that one should be able to perform curl requests against the admin api. I set up an access token (#1057). When I do:
curl -v -i -H “Authorization:ACCESS_TOKEN” http://localhost:8080/api/admin/crawlinginfo
it returns: /error/notfound/?url=%2Fapi%2Fadmin%2Fcrawlinginfo%2F

What am I missing ?

Thanks

(from github.com/marevol)
It’s better to check if the token is valid.

(from github.com/ECJansen)
I added an admin-api role:
image
and created an access token:
image
When I do the curl, I get:


Am I not setting up the access token correctly ? If not, how to set up correctly ?
Thanks

(from github.com/ECJansen)
So having made the changes for the new role and access token, when I login to the admin console, I get a search screen and no dashboard. Selecting Administration from the dropdown leaves me at the search screen. Selecting Logout does indeed log me out and leave me at the login screen. How can I correct this ?

Thanks

(from github.com/marevol)
The endpoint is wrong.
See https://fess.codelibs.org/lastadoc-fess.html#.api.admin.crawlinginfo.logs::logs

(from marevol (Shinsuke Sugaya) · GitHub)

How can I correct this ?

It’s not reproduced and better to restore jsp files.