[Orchestration API v1 (CURRENT)] Missing "Normal response codes" and Response body when listing all available template versions.

Bug #1541724 reported by NGUYEN TUONG THANH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Undecided
NGUYEN TUONG THANH

Bug Description

When listing all available template versions using Orchestration API v1 (CURRENT), I followed:
http://developer.openstack.org/api-ref-orchestration-v1.html#template_version_list
Issues:
1. The description only shows "Error response codes" and "Request parameters":
======= Currently ============
Error response codes 400, 401, 404, 500
Request parameters
.......
------------------------------

When I do this action, it returned "Normal response codes" 200.
So, "Normal response codes" was missed. It should be added as below:
======= After fixing =========
Normal response codes 200
Error response codes 400, 401, 404, 500
Request parameters
.......
------------------------------

2. The description of this operation shows that: "This operation does not accept a request body and does not return a response body. "
Actually, when I list template versions, this action already returned a response as the following:
======== Response body =======
{
    "template_versions":
    [
        {
            "version": "heat_template_version.2014-10-16",
            "type": "hot"
        },
        {
            "version": "heat_template_version.2015-04-30",
            "type": "hot"
        },
        {
            "version": "HeatTemplateFormatVersion.2012-12-12",
            "type": "cfn"
        },
        {
            "version": "heat_template_version.2015-10-15",
            "type": "hot"
        },
        {
            "version": "AWSTemplateFormatVersion.2010-09-09",
            "type": "cfn"
        },
        {
            "version": "heat_template_version.2013-05-23",
            "type": "hot"
        },
        {
            "version": "heat_template_version.2016-04-08",
            "type": "hot"
        }
    ]
}
--------------------------

Moreover, when I list all template version using command line, it returned:
==========================
$ heat template-version-list
+---------------------------------------------+------+
| version | type |
+---------------------------------------------+------+
| AWSTemplateFormatVersion.2010-09-09 | cfn |
| HeatTemplateFormatVersion.2012-12-12 | cfn |
| heat_template_version.2013-05-23 | hot |
| heat_template_version.2014-10-16 | hot |
| heat_template_version.2015-04-30 | hot |
| heat_template_version.2015-10-15 | hot |
| heat_template_version.2016-04-08 | hot |
+-------------------------------------------- +------+

So, the description for this operation should be added the response body.

Changed in openstack-api-site:
assignee: nobody → NGUYEN TUONG THANH (thanhnt-z)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

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

Reviewed: https://review.openstack.org/276101
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=9e0c4a3783d57ba1b86210ded3577641da0a700b
Submitter: Jenkins
Branch: master

commit 9e0c4a3783d57ba1b86210ded3577641da0a700b
Author: NGUYEN TUONG THANH <email address hidden>
Date: Thu Feb 4 16:24:30 2016 +0700

    [Orchestration API v1]Missing information when listing template versions

    This patch fixes missing "Normal response codes" and Response body when listing
    all available template versions using Orchestration API v1.

    Change-Id: I4394c3cebdda6ef8af5d4cd427e55b6ee77f9559
    Closes-Bug: #1541724

Changed in openstack-api-site:
status: In Progress → Fix Released
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.