altinn-studio icon indicating copy to clipboard operation
altinn-studio copied to clipboard

Api to create new text resource (application language)

Open RonnyB71 opened this issue 1 year ago • 1 comments

Description

Today Studio frontend does a POST request to /designer/Ronny/datamodel/Text/SaveResource/af

Create a new endpoint for doing a POST request to /designer/api/v2/{org}/{repo}/texts that creates the specified language. The specified language should go in the body of the POST request. If it doesn't exists, create a simple view model representing the POST model.

Additional Information

No 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 201 with the newly created resource in the response body

RonnyB71 avatar Aug 22 '22 11:08 RonnyB71

cc: @mjulstein @andrealouisestanderen

RonnyB71 avatar Aug 22 '22 11:08 RonnyB71

Solved by issue #8889

standeren avatar Sep 19 '22 13:09 standeren