Skip to content
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

Allow partial POST edits on miq policy REST #14518

Merged
merged 1 commit into from
Mar 29, 2017

Commits on Mar 28, 2017

  1. Allow partial POST edits on miq policy REST

    Fix https://bugzilla.redhat.com/show_bug.cgi?id=1435777
    
    policies API (MiqPolicy) should allow partial POST edits
    e.g
    
    POST localhost:3000/api/policies/1000000000007
    {
      "action": "edit",
      "description": "Desc bar"
    }
    In addition the current error message is wrong as it is about creation not edit:
    
    {
      "error": {
        "kind": "bad_request",
        "message": "Resource conditions_ids, policy_contents needs be specified for creating a new policies",
        "klass": "Api::BadRequestError"
      }
    }
    Mooli Tayer committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    8cb8017 View commit details
    Browse the repository at this point in the history