ansible / eda-server

Event Driven Ansible for AAP
Apache License 2.0
64 stars 41 forks source link

feat: add PATCH action for detail view OPTIONS #887

Closed Dostonbek1 closed 4 months ago

Dostonbek1 commented 4 months ago

Changes

Background

Response from OPTIONS request on list/detail endpoints is consumed by the UI to show/hide action buttons for the logged in user. We currently support the following two scenarios:

  1. If OPTIONS request on list view contains POST action, the logged in user has permission to create new instance of this resource

Screenshot 2024-05-03 at 12 34 22 PM

  1. If OPTIONS request on detail view contains PATCH action, the logged in user has permission to edit the current object

Screenshot 2024-05-03 at 12 34 43 PM

JIRA: AAP-20725