Hi Uwe,
I've just tested the API plugin on the demo site, and it seems to work - remember, because the demo site resets regularly, you would need to first log in, go to Admin > Plugins, and make sure the API plugin is enabled. After I was able to run the following example query:
The documentation does clarify that browser access will only work if you are logged in. I'm not aware of any way that you can pass an API key just via the browser, though it may be possible. However, as far as I can tell, the API key is also working via cURL. I generated an API key for the editor user in the public demo site (remember, if you want to repeat this, you will likely have to log in and do it yourself again, since the demo site will regularly reset), and the following query worked:
I think to be able to do you what you want, you would need to do some development. I am not a developer, but I think you'd have to do something like the following:
- Generate an API key for a dummy user
- Create a button in the view page template for information objects
- When the button is clicked, form the query by:
- Fetching the dummy user's API key and inserting it, and
- Fetching the slug of the current description and appending it to the URL
- Post the returned JSON in a way that the browser can access and display
Let us know how it goes!
Regards,