Support #14605
HTTP API /api/get/entries Appears broken
0%
Description
It may be my incompetence, but I can't get the new HTTP API to work. Previously I was able to do a GET to:
https://www-bd.fnal.gov/Elog/getEntries?logName=Operations
And have it return the 100 most recent Operations log entries in JSON format.
I updated my call for the new API with my best guess as the wiki page hasn't been completely updated:
https://www-bd.fnal.gov/Elog/api/get/entries?orLogName=Operations
And then I get the following error: "Message: Entry ids must be specified." and a HTTP 400 response
I don't expect this error as I think I should be able to just ask for the most recent entries the way I have and get them back without specifying any entry IDs.
History
#1 Updated by Kyle Hazelwood over 4 years ago
- Tracker changed from Bug to Support
- Category set to Server
- Status changed from New to Feedback
- Target version set to Version 2.0
Yeah. Sorry, the wiki isn't up to date yet.
Try replacing "get" with "search". Get requires entry ids.
#2 Updated by Michael Wren over 4 years ago
Thanks for the fast feedback, that seems to work.
#3 Updated by Kyle Hazelwood over 4 years ago
- Status changed from Feedback to Closed