altinn-studio
altinn-studio copied to clipboard
Api to update text resource
Description
Today Studio frontend does a POST request to designer/{org}/{repo}/Text/SaveResource/nb
Create a new endpoint for doing a PUT request to /designer/api/v2/{org}/{repo}/texts/{languageCode}
that updates the specified language.
Additional Information
Should discuss whether a PUT should return the updated file in the response or just a 204 No Content. The PUT'ed content should equal on the on disk version so don't see any need to include it in the response.
Tasks
No response
Acceptance Criterias
- [ ] New endpoint implemented
- [ ] New endpoint is covered by unit/integration tests
- [ ] The selected text file with the matching language code should be updated
- [ ] The http response should be either 200 (with payload) or 204 (without payload)
cc: @mjulstein @andrealouisestanderen
Solved by issue #8889