7625c995 | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
OpenAPI docs: fix error code deduplication |
8268b284 | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: make responses sortable
All responses now need to implement __toString() so they can be easily sorted or printed. |
9e6b19e6 | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: fix listPages
Not all needed fields are returned by the search callback |
5bef72be | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: getPageHistory is nicer than getPageVersions |
0eb4820c | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: checkPage needs to consider revision |
b115d6db | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: always pass revision as integer |
7288c5bd | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API fix depth handling in listPages |
58ae4747 | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: initialize responses explicitly
Instead of passing unknown arrays, explicit parameters are passed. Revision handling should now work correctly since we can pass revision=0 but a mtime. |
b433b69e | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: remove file and date transformations
We always deal with timestamps or base64 now. Removing some of the magic makes everything less complex.
Only affected plugin is confmanager, which needs an
API: remove file and date transformations
We always deal with timestamps or base64 now. Removing some of the magic makes everything less complex.
Only affected plugin is confmanager, which needs an update.
show more ...
|
d3856637 | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: clean up error codes
Error codes are now extracted from API core and printed on the OpenAPI overview page. This makes it easier to see what is in use.
Error messages have been cleaned up, some
API: clean up error codes
Error codes are now extracted from API core and printed on the OpenAPI overview page. This makes it easier to see what is in use.
Error messages have been cleaned up, some new codes have been assigned.
Some errors have been removed. Eg. it is fine to iterate a media namespace you don't have read access to. The result will either be empty or contain files from lower namespaces that you *do* have access to.
show more ...
|
902647e6 | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: Do not assume the start page for empty pageIDs |
0e8fe812 | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
ensure api explorer stays english
See https://github.com/Authress-Engineering/openapi-explorer/issues/207 |
e4e3d439 | 05-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
moved OpenAPI generator to correct namespace
added missing doc blocks |
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 |
cd0c7c3a | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
add title to api explorer |
d0749387 | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
fix ApiCall test |
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 |