Cannot retrieve concept with special characters in code
I created a concept for a string activity - resource creation
curl --location --request POST 'http://localhost:8080/api/vocabularies/sshoc-keyword/concepts/?candidate=true' \
--header 'Authorization: Bearer XXX \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "activity+-+resource+creation",
"label": "activity - resource creation"
}'
code
is encoded according to suggestions done by Michał some time ago.
I cannot retrieve it using get as I get 404 for this request:
curl --location --request GET 'http://localhost:8080/apivocabularies/sshoc-keyword/concepts/activity+-+resource+creation' \
--header 'Authorization: Bearer XXX'
I can search for it too:
curl --location --request GET 'http://localhost:8080/api/concept-search?q=activity%20-%20resource%20creation'