Skip to content

feat(FastAPI): add /requests/{id}/close (get, post)

Kevin Morris requested to merge kevr/aurweb:pu_requests_close into pu

This final "requests" MR is based on !132 (merged) (base of base) and !134 (merged) (base).

Added routes:

  • GET /requests/{id}/close
  • POST /requests/{id}/close
    feat(FastAPI): add /requests/{id}/close (get, post)

    Changes from PHP:

    - If a user submits a POST request with an invalid reason,
      they are returned back to the closure form with a BAD_REQUEST status.
    - Now, users which created a PackageRequest have the ability to close
      their own.
    - Form action has been changed to `/requests/{id}/close`.

    Signed-off-by: Kevin Morris <kevr@0cost.org>

Merge request reports

Loading