recover status.yaml & touch empty v1/parameters.yaml & add custom config api doc

Change-Id: Iafd99b33899dc3540e78465021f711eae0abe08b
This commit is contained in:
inspurericzhang 2022-09-12 04:37:57 +00:00
parent 40adfdd5f1
commit 006a0dec64
7 changed files with 41 additions and 5 deletions

View File

@ -13,11 +13,11 @@ Lists information for all Venus API versions.
Response codes
--------------
.. rest_status_code:: success ../parameters.yaml
.. rest_status_code:: success ../status.yaml
- 0
.. rest_status_code:: error ../parameters.yaml
.. rest_status_code:: error ../status.yaml
- -1

View File

@ -0,0 +1,31 @@
.. -*- rst -*-
Custom Config
=============
Get Custom Config
~~~~~~~~~~~~~~~~~~~~~
.. rest_method:: GET /custom_config
Get the value of all custom config.
Response codes
--------------
.. rest_status_code:: success ../status.yaml
- 0
.. rest_status_code:: error ../status.yaml
- -1
Response
--------
**Example: JSON request**
.. literalinclude:: ./samples/custom-config/custom-config-show-response.json
:language: javascript

View File

@ -9,3 +9,7 @@ OpenStack Log API V1 (CURRENT)
.. versions document.
.. include:: api-versions.inc
.. custom config document.
.. include:: custom_config.inc

View File

@ -0,0 +1 @@
ADD INPUT PARAMETERS HERE

View File

@ -1,3 +0,0 @@
{
"value": "30"
}

View File

@ -0,0 +1,3 @@
{
"log_save_days": "30"
}