0caa81c7 | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: move create/delete user calls to usermanager
This only moves the calls. A proper refactoring of the user manager would make sense:
1) introduce a helper component covering the basic operations
API: move create/delete user calls to usermanager
This only moves the calls. A proper refactoring of the user manager would make sense:
1) introduce a helper component covering the basic operations including proper error signalling using Exceptions 2) refactor admin and cli components to make use of 1) 3) make the operations in 1) available via the API
show more ...
|
f1cc602f | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
OpenAPI Gen: fix requirement handling |
6cce3332 | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
Reworked API definition
This cleans up the API:
* no more compatibility with obsolete wiki API * no more difference between wiki.* and dokuwiki.* calls -> core.* * use of optional parameters avoids
Reworked API definition
This cleans up the API:
* no more compatibility with obsolete wiki API * no more difference between wiki.* and dokuwiki.* calls -> core.* * use of optional parameters avoids double definitions * use Response objects for complex results * always use named primitives as input * major cleanup of docblock descriptions
show more ...
|
dd7472d3 | 04-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
OpenAPI Gen: handle Object to Schema transformation correctly
All the basic mechanisms should now be in place to clean up the API |
53c2a557 | 04-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
OpenApi Gen: add toString method for easier testing |
8ddd9b69 | 22-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
OpenAPI Generator. Better DocBlock parsing [WIP]
This introduces a new DocBlock parser to properly generate API specifications. It also introduces the concept of Response classes to better specify t
OpenAPI Generator. Better DocBlock parsing [WIP]
This introduces a new DocBlock parser to properly generate API specifications. It also introduces the concept of Response classes to better specify the response format.
This is still very much in progress.
show more ...
|
fe9f11e2 | 07-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
improved API docs |
66f07661 | 07-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
OpenAPI Gen: @link tag, examples for known params |
0ff4031c | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
rename $id to be more clear
It should be more clear if a media or page ID is passed. Also openapi-explorer will not prefill examples for any parameters called *id*. |
0c6e9178 | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
OpenAPI Explorer basically works |
8a9282a2 | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
improve the doc blocks in ApiCore |
b05603ab | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
fix type parsing for more complex types |
e7323dfb | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
Do not directly use native function in API
As fedb87702391d74284af4d0c0add4330d3456195 showed, we can not directly use native fuctions because they have no proper type hinting in PHP7.4 |
d95846aa | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
final set of API tests refactored |
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 ...
|
ff1cfe2d | 24-Dec-2023 |
tangdou1 <35254744+tangdou1@users.noreply.github.com> |
Update lang.php |
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 |
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 |