From f5dd9bbe0856de75102ebc446def487d10a6ec62 Mon Sep 17 00:00:00 2001 From: Andrew Sparkes Date: Fri, 5 Apr 2024 17:53:29 +0100 Subject: [PATCH] added filters on polymetdata resource to allow limber selection of existing metadata --- app/resources/api/v2/poly_metadatum_resource.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/resources/api/v2/poly_metadatum_resource.rb b/app/resources/api/v2/poly_metadatum_resource.rb index 7f5d9bc00c..031f444c6d 100644 --- a/app/resources/api/v2/poly_metadatum_resource.rb +++ b/app/resources/api/v2/poly_metadatum_resource.rb @@ -21,6 +21,8 @@ class PolyMetadatumResource < BaseResource attribute :updated_at, readonly: true # Filters + filter :key + filter :metadatable_id # Custom methods # These shouldn't be used for business logic, and a more about