policy-type schema not exposed following RESTful API

Bug #1523102 reported by Qiming Teng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
High
Qiming Teng

Bug Description

policy type schema are currently exposed at:

  method: GET
  uri: /policy-types/{type_name}

The returned response contains:

   "spec": {
      ...
   }

This is not conforming to the RESTful API principle. Should be revised as:

   method: GET
   uri: /policy-types/{type_name}

The returned response should contain:

  "policy_type": {
      "name": "name",
    "schema": {
      ...
    }
  }

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin (master)

Fix proposed to branch: master
Review: https://review.openstack.org/253812

Changed in senlin:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.openstack.org/253812
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=3431750f732737fb5eb00e4a95ece62c59d795f4
Submitter: Jenkins
Branch: master

commit 3431750f732737fb5eb00e4a95ece62c59d795f4
Author: tengqm <email address hidden>
Date: Sat Dec 5 08:49:04 2015 -0500

    Fix policy schema api

    This patch fixes the policy type schema API.

    Closes-Bug: #1523102
    Change-Id: I61a406ec941f902cb88e4ec521a42af05bb5a93a

Changed in senlin:
status: In Progress → Fix Committed
Qiming Teng (tengqim)
Changed in senlin:
status: Fix Committed → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/senlin 1.0.0.0b2

This issue was fixed in the openstack/senlin 1.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.