Native API: Show single metadatablock endpoint doc says identifier arg can be name or db id. Name works, db id doesn't.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
https://guides.dataverse.org/en/5.12.1/api/native-api.html#show-info-about-single-metadata-block
Show Info About Single Metadata Block
CORSReturn data about the block whose identifier is passed. identifier can either be the block’s id, or its name:
GET http://$SERVER/api/metadatablocks/$identifier
curl http://localhost:8080/api/metadatablocks|jq .
Shows,
"id": 1,
"displayName": "Citation Metadata",
"name": "citation"
curl http://localhost:8080/api/metadatablocks/citation works
curl http://localhost:8080/api/metadatablocks/1 does not, shows: {"status":"ERROR","message":"Can't find metadata block '1'"}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Native API endpoint documented at guides.dataverse.org/en/5.12.1/api/native-api.html#show-info-about-single-metadata-block and reproduce both curl requests for the citation metadata block. Trace how the endpoint resolves the identifier, then verify that the numeric ID returns the same block as its name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100