API REST Omeka S for private resources


#1

Hi, some developers and me are working on a project using Omeka-S with API Rest, but in Omeka configuration only can get data when resources (items, etc) are marked as public and we need consume data marked as private, that’s possible? Or maybe add key and token to the GET request from Omeka to limit certain users to see some data?

Thanks


#2

Yes, you can create an api key. Go to admin > user > tab Api keys. The client will have the rights of this user : /api?key_identity=VBzRKhwLSy06IxCjLhyEsTYzWYX0pKBR&key_credential=FbNymgpnlCzIE6QskQ1OdKaQTV3Iyv5k.


#3

I get it.

However, as the elements (for example) are marked as public, they can be seen by “anonymous” users, the intention is to mark them as private and be able to consume them with the API


#4

Daniel’s saying you can make a key and access the API as a particular user, thereby letting you use private items. You don’t have to mark them public.


#5

I’ve tried it and it worked. Thank you!