| 01052543 | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
Adjust ACL remote component to new system
There is no need to implement getMethods anymore. All data comes from reflection |
| 53585189 | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
another set of api tests |
| 1468a128 | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
Fix first set of API tests |
| 42e66c7a | 30-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
First go at refactoring the API mechanisms
This introduces an ApiCall class that wraps around the actual method that produces the result. This replaces various loose array structures that provided t
First go at refactoring the API mechanisms
This introduces an ApiCall class that wraps around the actual method that produces the result. This replaces various loose array structures that provided the meta information before.
The ApiCall streamlines the aggregation of meta information between core and plugin methods. Now all data is produced by Reflection based introspection. Certain aspects can be overridden if needed. See ApiCore::getRemoteInfo() for examples
This change removes the _getMethods() method from remote plugins and introduces a getMethods() method. The two are NOT compatible as the latter now returns a list of ApiCalls. However when looking at the existing plugins, it seems that _getMethods() was nearly 100% obsolete with the Reflection based default implementation. So most plugins will not be affected at all. Some might now export one or two more methods than before because of poor visibility settings (eg. not declaring private/protected methods as such).
This change removes the RPC_CALL_ADD hook. Only a single plugin ever implemented it. I'm not sure what this hook was supposed to do anyway. Being able to declare arbitrarily named API endpoints seems wrong to me anyway.
The new ApiCall now also supports passing named instead of positional parameters. This will open up a new opportunity to get a proper openapi spec running.
Next step is fixing the tests.
show more ...
|
| 5ee96713 | 30-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
attempt to model the JSON-RPC API as openapi spec
Failed because positional parameters are not really possible to model. Named parameter could be introduces when our minimum requirement is switched
attempt to model the JSON-RPC API as openapi spec
Failed because positional parameters are not really possible to model. Named parameter could be introduces when our minimum requirement is switched to PHP8+
show more ...
|
| cd89aff0 | 07-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
fix IP tests
to accommodate the change introduced in e6d2a179db8ba3d368f5d453201de9ce41502a4f |
| e6d2a179 | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
use private IP addresses in tests |
| 0143b696 | 03-Jan-2024 |
Schplurtz le Déboulonné <schplurtz@laposte.net> |
translation update |
| 0f7e41ab | 03-Jan-2024 |
Marek Adamski <fevbew@wp.pl> |
translation update |
| ff1cfe2d | 24-Dec-2023 |
tangdou1 <35254744+tangdou1@users.noreply.github.com> |
Update lang.php |
| df9e4a18 | 22-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
automatically prune old logs
This adds a new configuration that allows to define how many logfiles per facility should be kept. Old files are pruned daily via the task runner. |
| 49d45966 | 09-Dec-2023 |
Schplurtz le Déboulonné <schplurtz@laposte.net> |
translation update |
| d277f979 | 08-Dec-2023 |
Martin Růžička <martinr@post.cz> |
translation update |
| 9b944650 | 07-Dec-2023 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Upgrade rector to 0.18.12
Two classes in DokuWiki's skip rules were removed from rector in 0.18.12 |
| c7f1640f | 06-Dec-2023 |
Zhenzhe Huang <1991419264@qq.com> |
translation update |
| c60f3999 | 05-Dec-2023 |
Hoàng Vịnh <hoangdangvinh.vn@gmail.com> |
translation update |
| 8a8ac4f0 | 03-Dec-2023 |
Marek Adamski <fevbew@wp.pl> |
translation update |
| 6c931de5 | 02-Dec-2023 |
Thalles Lázaro <thallesprofissional@gmail.com> |
translation update |
| c46f56cc | 30-Nov-2023 |
m-martin-78 <138781920+m-martin-78@users.noreply.github.com> |
Update init_checkssl.test.php |
| 8033346c | 30-Nov-2023 |
m-martin-78 <138781920+m-martin-78@users.noreply.github.com> |
coding style |
| 8a3002c9 | 29-Nov-2023 |
splitbrain <splitbrain@users.noreply.github.com> |
Rector and PHPCS fixes |
| 36d03388 | 28-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
JSON-RPC: we do not support named parameters
Even though this would be valid in JSON-RPC 2.0 we don't support it currently. This adds the proper error handling for that. |
| 8d294593 | 28-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
JSON-RPC: throw proper error on invalid JSON |
| 6f8e03f5 | 28-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
implement support for JSON-RPC 1.0, 1.1 and 2.0
This implements the slightly more standardized JSON-RPC standard as an alternative to my home-grown version. The same server handled all formats inclu
implement support for JSON-RPC 1.0, 1.1 and 2.0
This implements the slightly more standardized JSON-RPC standard as an alternative to my home-grown version. The same server handled all formats including my own simpler variant.
show more ...
|
| cf927d07 | 28-Nov-2023 |
splitbrain <splitbrain@users.noreply.github.com> |
Rector and PHPCS fixes |