create new endpoint to retrieve workflow schemas by multiple Content Types#35729
Conversation
|
Claude finished @dario-daza's task in 4m 53s —— View job PR ReviewEndpoint logic is sound and well-tested. A few items worth a second look: Worth addressing
Minor
Nothing else jumped out
|
…workflow-schemes-for-a-list-of-content-types
…l-param support, deduplication
Proposed Changes
GET /api/v1/workflow/contenttypes/schemesendpoint (findAllSchemesByContentTypeList) that accepts a comma-separatedcontentTypeIdsquery parameter and returns workflow schemes grouped by content typeAbstractContentTypeWorkflowSchemesView(Immutables) withcontentTypeId+contentTypeSchemesfields, andResponseEntityContentTypeWorkflowSchemesViewas the typed response wrappercontentTypeIdscomma-separated values (?contentTypeIds=id1,id2,id3) rather than repeated params — trims whitespace and filters empty tokensWorkflowResourceResponseCodeIntegrationTestcovering: null input, empty string, whitespace-only tokens, IDs with surrounding whitespace, invalid ID (expects 404), happy path with comma-separated valid IDs, and documented repeated-param limitationAdditional Info
The endpoint returns a structured
List<{contentTypeId, contentTypeSchemes[]}>rather than a flat deduplicated list - this keeps the association between each content type and its schemes intact and lets the frontend handle deduplication if needed.This PR fixes: #35471