From fbb91ff1a964ee102b303c6d23dfa0be37815eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Wed, 30 Jul 2025 16:35:44 +0100 Subject: [PATCH 1/2] new findBySubmissionDefinitionName endpoint --- collections.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/collections.md b/collections.md index e6ab059..20e9149 100644 --- a/collections.md +++ b/collections.md @@ -187,6 +187,23 @@ Return codes: * 200 OK - if the operation succeeds * 401 Unauthorized - if you are not authenticated +#### findBySubmissionDefinitionName +**/api/core/collections/search/findBySubmissionDefinitionName** + +Get the list of all collections associated with a particular submission name. + +The supported parameters are: +* `name`: the name for a specific submission-definition. +* `page`, `size` [see pagination](README.md#Pagination) + +eg: +/api/core/collections/search/findBySubmissionDefinitionName?name=<:definition-name> + +Return codes: +* 200 OK - if the operation succeeds +* 400 Bad Request - if the name is missing or invalid +* 401 Unauthorized - if you are not authenticated + ## Patch operations Collection metadata can be modified as described in [Modifying metadata via Patch](metadata-patch.md). From 92bd0bb05ef2cab242a74ec76fb063bb8c49dd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Wed, 30 Jul 2025 16:38:33 +0100 Subject: [PATCH 2/2] remove collections references --- submissiondefinitions.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/submissiondefinitions.md b/submissiondefinitions.md index 0ed9105..fcbc583 100644 --- a/submissiondefinitions.md +++ b/submissiondefinitions.md @@ -24,7 +24,6 @@ Provide detailed information about a specific submission-definition. The JSON re ``` Exposed links: -* collections: list of collections that explicitly use such submission-definition * sections: list of submission-section included in this definition ### Search methods @@ -34,11 +33,6 @@ Exposed links: It returns the submission definition that apply to a specific collection eventually fallback to the default configuration ### Linked entities -#### collections -**/api/config/submissiondefinitions/<:definition-name>/collections** - -It returns the list of collection that make an explicit use of the submission-definition. If a collection doesn't specify the submission-definition to be used the default mapping apply but this collection is not included in the list returned by this method - #### sections **/api/config/submissiondefinitions/<:definition-name>/sections**