Add Sample ReST API path in webapi document

Sample type has been described in webapi document, but API path is
missing, this patch fixes it.

Change-Id: I09248aac036479c9ccd250824de4df05713bfaa1
Closes-Bug: #1388507
This commit is contained in:
ZhiQiang Fan 2014-11-02 14:54:51 +08:00
parent 6eac318612
commit e48e1736d7
2 changed files with 5 additions and 2 deletions

View File

@ -1162,9 +1162,9 @@ class SamplesController(rest.RestController):
@wsme_pecan.wsexpose(Sample, wtypes.text)
def get_one(self, sample_id):
"""Return a sample
"""Return a sample.
:param sample_id: the id of the sample
:param sample_id: the id of the sample.
"""
f = storage.SampleFilter(message_id=sample_id)

View File

@ -31,6 +31,9 @@ Meters
Samples and Statistics
======================
.. rest-controller:: ceilometer.api.controllers.v2:SamplesController
:webprefix: /v2/samples
.. autotype:: ceilometer.api.controllers.v2.Sample
:members: