13 Commits

Author SHA1 Message Date
Ad Schellevis
37119d5626 collect_api_endpoints.py - skip empty endpoints (unknown contents) 2025-05-06 12:41:50 +02:00
Freddie Sackur
f7a0d79a0c
Type-hint ApiParser using pydantic (#713)
* collect_api_endpoints.py: require pydantic

* collect_api_endpoints.py: adopt pydantic for type-hinting
2025-05-04 17:04:15 +02:00
Ad Schellevis
db14cb93d6 collect_api_endpoints.py: move collect_api_modules into its own module, for https://github.com/opnsense/docs/pull/712 2025-05-03 18:08:54 +02:00
Ad Schellevis
02823b6055 collect_api_endpoints.py: refactor and split extraction logic, uses a lexer now to aase further extensions. 2025-05-01 09:58:59 +02:00
Ad Schellevis
b88fdfc750 collect_api_endpoints.py - refactor controller parser to ease further extensions and ease pipelining to different outputs 2025-04-29 21:39:17 +02:00
Ad Schellevis
83d9aa86c4 development/api - camel to snake case for commands and update endpoints. 2025-04-29 20:03:20 +02:00
Ad Schellevis
79e598ce19 support - add list of supported community plugins and their tier including a script to collect them 2023-01-24 22:18:50 +01:00
Ad Schellevis
6e5b6fda56 collect_api_endpoints.py - minor bug fixes (incorrect method) 2022-10-19 17:20:19 +02:00
Ad Schellevis
d3c0049aaa collect_api_endpoints.py: add standard base methods and escape parameters 2021-03-08 12:22:38 +01:00
Ad Schellevis
9b74bef4fe fix previous 2020-04-07 20:53:31 +02:00
Ad Schellevis
03a84977e9 collect_api_endpoints.py: extend script with support for abstract classes, add used model when using standard templates.
needed to better explain documentation for https://github.com/opnsense/plugins/issues/1749
2020-04-07 20:44:03 +02:00
Ad Schellevis
021dc46818 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] 2020-03-11 09:58:12 +01:00
Ad Schellevis
c0d7a022b2 API: add python script to harvest API endpoints, so we can avoid https://github.com/opnsense/plugins/issues/1698 easier. 2020-02-16 16:07:36 +01:00