-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add name property to API actions #2032
Comments
4 tasks
knuhau
added a commit
that referenced
this issue
Mar 11, 2025
<!--- Provide a general summary of your changes in the Title above --> ## Description Added an optional name field to ApiActions, to allow for easier identification of the purpose of the action. ## Related Issue(s) - #2032 ## Verification - [x] **Your** code builds clean without any errors or warnings - [x] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Introduction
This adds a name property to API-actions, which can be used by EUS-es to navigate to the correct action without looking at the URL
Description
Often there are distinct actions that require the same XACML action to be authorized, eg. correspondence:
Currently, the only way for a system to differentiate the various write-actions is to look at the URL, which we want to avoid. By adding a optional "name"-property, which can be the logical name for the apiAction, this can be remedied.
Tasks
Threat Modelling
Acceptance criteria
GIVEN an API action with a name value
WHEN the API action is retrieved
THEN the name value should be returned in the response
GIVEN a request to create or update an API action with a name value
WHEN the name value is 255 characters or less
THEN the API action should be created or updated with the provided name
GIVEN a request to create or update an API action with a name value
WHEN the name value exceeds 255 characters
THEN the request should be rejected with an appropriate validation error
GIVEN a request to create or update an API action without a name value
WHEN the API action is processed
THEN the API action should be created or updated with a null name value
The text was updated successfully, but these errors were encountered: