Skip to content

Commit 22386d3

Browse files
author
Alex Carrega
committed
Minor changes
1 parent 035d5f3 commit 22386d3

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

docs/parameters.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ Management of the parameters included in configuration files.
1111
Parameters Settings Model
1212
-------------------------
1313

14-
+-------------+-------------------+-------------------------------------------------------------------+----------------------+----------+
15-
| Field | Type | Description | Example | Required |
16-
+-------------+-------------------+-------------------------------------------------------------------+----------------------+----------+
17-
| ``source`` | String | Path of the configuration file that includes the parameter. | /opt/test.json | True |
18-
+-------------+-------------------+-------------------------------------------------------------------+----------------------+----------+
19-
| ``format`` | Enum(json,yaml) | Format of the configuration file where the parameter is included. | yaml | True |
20-
+-------------+-------------------+-------------------------------------------------------------------+----------------------+----------+
21-
| ``xpath`` | List(String) | List of keys to indicate the xpath in the configuration file. | ('agent', 'enabled') | True |
22-
+-------------+-------------------+-------------------------------------------------------------------+----------------------+----------+
23-
| ``history`` | List(ActionModel) | History of parameter updates. | | True |
24-
+-------------+-------------------+-------------------------------------------------------------------+----------------------+----------+
14+
+-------------+-------------------------+-------------------------------------------------------------------+----------------------+----------+
15+
| Field | Type | Description | Example | Required |
16+
+-------------+-------------------------+-------------------------------------------------------------------+----------------------+----------+
17+
| ``source`` | String | Path of the configuration file that includes the parameter. | /opt/test.json | True |
18+
+-------------+-------------------------+-------------------------------------------------------------------+----------------------+----------+
19+
| ``format`` | Enum(String)[json,yaml] | Format of the configuration file where the parameter is included. | yaml | True |
20+
+-------------+-------------------------+-------------------------------------------------------------------+----------------------+----------+
21+
| ``xpath`` | List(String) | List of keys to indicate the xpath in the configuration file. | ('agent', 'enabled') | True |
22+
+-------------+-------------------------+-------------------------------------------------------------------+----------------------+----------+
23+
| ``history`` | List(ActionModel) | History of parameter updates. | | True |
24+
+-------------+-------------------------+-------------------------------------------------------------------+----------------------+----------+
2525

2626

2727
.. _parameters-output-model:

docs/settings.rst

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,29 @@ The settings of `RESTable` are set in the file `settings.yaml'.
77

88
The schema of this file is the following:
99

10-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
11-
| Field | Type | Description | Example | Required | |
12-
+====================+==================================================================+============================+===================================+==========+======+
13-
| ``port`` | Integer | Port where the | interface is waiting for request. | 9999 | True |
14-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
15-
| ``debug`` | Boolean | Activates the debug. | True | False | |
16-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
17-
| ``project`` | String | Project name | GUARD | True | |
18-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
19-
| ``title`` | String | Title of the service. | RESTable Test | True | |
20-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
21-
| ``description`` | String | Description of the service | | True | |
22-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
23-
| ``commands`` | Dictionary(Command ID, :ref:`command-settings-mode`) | Available commands | | False | |
24-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
25-
| ``configurations`` | Dictionary(Configuration ID, :ref:`configuration-settings-mode`) | Available configurations | | False | |
26-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
27-
| ``parameters`` | Dictionary(Parameter ID, :ref:`parameter-settings-mode`) | Available parameters | | False | |
28-
+--------------------+------------------------------------------------------------------+----------------------------+-----------------------------------+----------+------+
10+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
11+
| Field | Type | Description | Example | Required | |
12+
+====================+=================+============================+===================================+==========+======+
13+
| ``port`` | Integer | Port where the | interface is waiting for request. | 9999 | True |
14+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
15+
| ``debug`` | Boolean | Activates the debug. | True | False | |
16+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
17+
| ``project`` | String | Project name | GUARD | True | |
18+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
19+
| ``title`` | String | Title of the service. | RESTable Test | True | |
20+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
21+
| ``description`` | String | Description of the service | | True | |
22+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
23+
| ``commands`` | Dictionary [1]_ | Available commands | | False | |
24+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
25+
| ``configurations`` | Dictionary [2]_ | Available configurations | | False | |
26+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
27+
| ``parameters`` | Dictionary [3]_ | Available parameters | | False | |
28+
+--------------------+-----------------+----------------------------+-----------------------------------+----------+------+
2929

30+
.. [1] Key: command ID, value: :ref:`commands-settings-model`.
31+
.. [2] Key: configuration ID, value: :ref:`configurations-settings-model`.
32+
.. [3] Key: parameter ID, value: :ref:`parameters-settings-model`.
3033
3134
.. |REST| replace:: :abbr:`REST (Representational State Transfer)`
3235
.. |TCP| replace:: :abbr:`TCP (Transmission Control Protocol)`

0 commit comments

Comments
 (0)