REST-API v2: provide direct access to classification categories

Description

Use 'detail' media type parameter on /api/v2/classifications/{classid}/{categid}:

'summary': get category element only (for label retrieval)
'normal': default case with parent categories
'detailed': same as 'normal' but with all children

curl 'http://localhost:8291/mir/api/v2/classifications/marcrelator/cre' -H 'Accept: application/json; detail=summary'

curl 'http://localhost:8291/mir/api/v2/classifications/marcrelator/cre' -H 'Accept: application/json'

Environment

None

Assignee

Thomas Scheffler

Reporter

Thomas Scheffler

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Priority

Medium
Configure