mirror of https://github.com/opnsense/docs
collect_api_endpoints.py: separate template and parser and support custom overwrites in the target directory using the format [my_target_api_file.rst.in]
parent
41186eb9cd
commit
021dc46818
@ -0,0 +1,10 @@
|
|||||||
|
{{ title }}
|
||||||
|
{{ title_underline }}
|
||||||
|
{% for controller in controllers %}
|
||||||
|
.. csv-table:: {{controller.type}} ({{controller.filename}})
|
||||||
|
:header: "Method", "Module", "Controller", "Command", "Parameters"
|
||||||
|
:widths: 4, 15, 15, 30, 40
|
||||||
|
{% for endpoint in controller.endpoints %}
|
||||||
|
"``{{endpoint.method}}``","{{endpoint.module}}","{{endpoint.controller}}","{{endpoint.command}}","{{endpoint.parameters}}"
|
||||||
|
{%- endfor %}
|
||||||
|
{% endfor %}
|
Loading…
Reference in New Issue