cloudkitty/api-ref/source/v2/rating/modules.inc
Mariusz Karpiarz 73a081355f Move API docs to api-ref/source
This is the first step towards moving API ref/docs to
https://docs.openstack.org/api

The `conf.py` file is a copy of the file from `doc/source` and all the
other files simply need moving to the new location.

Change-Id: I9ecf84b53274d9b86f05800fc9816de275f3e9c5
2022-12-09 16:01:13 +00:00

77 lines
1.3 KiB
HTML

=======================
Rating modules endpoint
=======================
Get the list of modules
=======================
Returns the list of all rating modules loaded. This method does not require any
parameter.
.. rest_method:: GET /v2/rating/modules
Status codes
------------
.. rest_status_code:: success http_status.yml
- 200
.. rest_status_code:: error http_status.yml
- 400
- 401
- 403
Response
--------
.. rest_parameters:: rating/modules_parameters.yml
- modules: modules_list
Response Example
----------------
.. literalinclude:: ./api_samples/rating/modules_list_get.json
:language: javascript
Get one module
==============
Returns the details of one specific module. This method does not require any
parameter.
.. rest_method:: GET /v2/rating/modules/<module_id>
Status codes
------------
.. rest_status_code:: success http_status.yml
- 200
.. rest_status_code:: error http_status.yml
- 400
- 401
- 403
- 404
Response
--------
.. rest_parameters:: rating/modules_parameters.yml
- module_id: module_id
- description: description
- enabled: enabled
- hot_config: hot_config
- priority: priority
Response Example
----------------
.. literalinclude:: ./api_samples/rating/module_get.json
:language: javascript