Page 1 of 1

Retrieve all values of a metadata_type

Posted: Thu Oct 01, 2020 7:08 pm
by nem
I'd like to add autocompletion to my script that is going to bulk import my documents. I have browsed the OpenAPI spec via swagger but haven't really found the metadata_type values. I've checked /metadata_types/, /metadata_types/{metadata_type_pk}/ and a few other endpoints but have not been able to find what I'm looking for.

Could you show me how I can get all the values for a single (or per) metadata_type, please. Thank you :-)

Re: Retrieve all values of a metadata_type

Posted: Wed Oct 07, 2020 11:18 pm
by rosarior
The metadata value is a property of the document and not of the metadata objects.

[Metadata type] -> [Document] <- [Metadata value]

I can see the benefit for auto completion but such an API would need to side step the access control layer, could be an expensive query, and will break the API layout of resource -> sub resource.

This one will require a consideration for a design decision.

Issue #892 created to track this:

Thanks for the request!