Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
109 stars 73 forks source link

Move env query parameter to route for access lists and publish resource requests #12977

Closed mgunnerud closed 1 week ago

mgunnerud commented 2 weeks ago

Description

Make env parameter for access lists and publish resource requests part of the route (instead of query parameter). The env parameter is required to identify the REST resource so it should not be a parameter.

Remove some extra routes which should not be used

Return 404 instead of 204 for some resource requests when no result is found

Minor backend refactors

Related Issue(s)

Verification

Documentation

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.47%. Comparing base (030107f) to head (70b83bf).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12977 +/- ## ======================================= Coverage 91.47% 91.47% ======================================= Files 1401 1401 Lines 19839 19839 Branches 2397 2397 ======================================= Hits 18148 18148 Misses 1427 1427 Partials 264 264 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.