Skip to content

Improve Dataverse REST OpenAPI source annotations#12439

Open
beepsoft wants to merge 1 commit into
IQSS:developfrom
beepsoft:openapi-improvements
Open

Improve Dataverse REST OpenAPI source annotations#12439
beepsoft wants to merge 1 commit into
IQSS:developfrom
beepsoft:openapi-improvements

Conversation

@beepsoft
Copy link
Copy Markdown
Contributor

@beepsoft beepsoft commented Jun 4, 2026

Add source-level OpenAPI annotations across Dataverse REST resources, including class tags, operation summaries/descriptions, parameter and request-body docs, API key security metadata, and response schema fixes for generated OpenAPI/MCP tooling.

What this PR does / why we need it:

Ongoing discussions in #12437.

Special notes for your reviewer:

This PR affects 580 endpoints (Java methods), which means we updated 45 Java files for this, which all need to be reviewed.

Suggestions on how to test this:

See what is returned by the /openapi or /openapi?format=json endpoint.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No.

Add source-level OpenAPI annotations across Dataverse REST resources, including
class tags, operation summaries/descriptions, parameter and request-body docs,
API key security metadata, and response schema fixes for generated OpenAPI/MCP
tooling.

IQSS#12437 describes this effort in more details
description = "Updates or creates a draft dataset version from JSON-LD metadata.")
@SecurityRequirement(name = "DataverseApiKey")
public Response updateVersionMetadata(@Context ContainerRequestContext crc,
@RequestBody(description = "JSON-LD metadata to apply to the dataset draft.")
@AuthRequired
@Path("datasetTypes/{id}")
public Response deleteDatasetType(@Context ContainerRequestContext crc, @PathParam("id") String doomed) {
@Operation(summary = "Remove a dataset type",
@PUT
@Path("datasetTypes/{idOrName}")
public Response updateDatasetTypeLinksWithMetadataBlocks(@Context ContainerRequestContext crc, @PathParam("idOrName") String idOrName, String jsonBody) {
@Operation(summary = "Link metadata blocks to a dataset type",
@srmanda-cs
Copy link
Copy Markdown
Contributor

Please assign me as a reviewer :)

@beepsoft
Copy link
Copy Markdown
Contributor Author

beepsoft commented Jun 4, 2026

@srmanda-cs I don't think I have permissions to do it here. @pdurbin can you maybe help, please?

@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project Jun 4, 2026
@pdurbin
Copy link
Copy Markdown
Member

pdurbin commented Jun 4, 2026

@srmanda-cs I just sent an invite. Please accept it at https://github.com/IQSS

Afterwards, you'll be part of https://github.com/orgs/IQSS/teams/dataverse-readonly which means I'll be able to assign issues and PRs to you (so look out! 😜 ).

@srmanda-cs
Copy link
Copy Markdown
Contributor

@srmanda-cs I just sent an invite. Please accept it at https://github.com/IQSS

Afterwards, you'll be part of https://github.com/orgs/IQSS/teams/dataverse-readonly which means I'll be able to assign issues and PRs to you (so look out! 😜 ).

Thank you so much!

@pdurbin pdurbin requested a review from srmanda-cs June 4, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for Triage

Development

Successfully merging this pull request may close these issues.

4 participants