Bug 1410504

Summary: Wrong http method for "edit" action for /api/arbitration_rules/:id
Product: Red Hat CloudForms Management Engine Reporter: Martin Kourim <mkourim>
Component: APIAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED WONTFIX QA Contact: Martin Kourim <mkourim>
Severity: low Docs Contact:
Priority: low    
Version: 5.7.0CC: dajohnso, jhardy, obarenbo, twade
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: api:rest
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 22:14:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Kourim 2017-01-05 15:52:37 UTC
Description of problem:

There is the "edit" action with the "delete" http method in addition to the "edit" action with the "post" http method.
The action name should be "delete" instead ("delete" action with "delete http method is missing, "delete" action with "post" method is present).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Create an arbitration profile:

POST /api/arbitration_rules
  "description" : "new admin rule",
  "operation" : "inject",
  "expression" : { "EQUAL" : { "field" : "User-userid", "value" : "admin" } }

and check the arbitration rule:

GET /api/arbitration_rules/:id

Comment 2 Tim Wade 2017-04-12 22:14:57 UTC
This endpoint is being deprecated, so we're unlikely to fix this