Skip to content

Add support for persisting a case via the API#175

Merged
flomillot merged 5 commits intomainfrom
add-persist-case-endpoint
Mar 6, 2026
Merged

Add support for persisting a case via the API#175
flomillot merged 5 commits intomainfrom
add-persist-case-endpoint

Conversation

@flomillot
Copy link
Contributor

PR Summary

Creation of a new endpoint to be able to add a case element by persisting an existing case

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
@Meklo Meklo self-requested a review February 26, 2026 08:28
@PostMapping(value = "/explore/cases/{caseName}/persist", params = {"caseUuid", "description", QUERY_PARAM_PARENT_DIRECTORY_ID})
@Operation(summary = "persist an existing case")
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "Case persist request delegated to case server")})
@PreAuthorize("@authorizationService.isAuthorized(#userId, #parentDirectoryUuid, null, T(org.gridsuite.explore.server.dto.PermissionType).READ)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the PermissionType be WRITE here ?

Copy link
Contributor Author

@flomillot flomillot Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, there is no JavaDoc to explain What is it, But I guess you're right.

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
@flomillot flomillot requested a review from Meklo March 5, 2026 11:14
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

@flomillot flomillot merged commit bf5f923 into main Mar 6, 2026
3 checks passed
@flomillot flomillot deleted the add-persist-case-endpoint branch March 6, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants