| 079b7b26 | 11-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
LegacyAPI: fix return types on missing pages |
| 4385690f | 11-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
fix error handling in XMLRPC
response errors in call() need to be returned as Error not as thrown Exception. |
| 15357ce4 | 10-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: fix media handling in legacy API |
| b5284271 | 09-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: add backward compatibility to API Version 11
This adds legacy support for the old API calls. This is mostly untested but should work. Returns might not be 100% compatible in all cases but I did
API: add backward compatibility to API Version 11
This adds legacy support for the old API calls. This is mostly untested but should work. Returns might not be 100% compatible in all cases but I did my best to return the same things as before.
This will be removed in the future of course and is just to not completely break any API usage immeadiately.
show more ...
|
| d48c2b25 | 07-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: code style fixes |
| ebae58f7 | 07-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
compatibility fix in ClassResolver
T_NAME_QUALIFIED is only available in PHP8+, earlier it's simply a T_STRING |
| 5e47e6df | 07-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API added simple JSONRPC tests |
| 12b99753 | 07-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
fix XMLRPC server tests
We test against the MockAPICore now since the tests are meant to ensure the general functionality of accepting XML and correctly calling APICalls works, not that the API retu
fix XMLRPC server tests
We test against the MockAPICore now since the tests are meant to ensure the general functionality of accepting XML and correctly calling APICalls works, not that the API returns the right things (this is tested in the ApiCore tests). Since we no longer use dates but always integers, we no longer need to handle that.
show more ...
|
| d1f06eb4 | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: ApiCore tests fixed and extended |
| 7de5ac55 | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
Another argument parsing fix for ApiCall
When using named parameters, you can expect to be able to leave out any optional parameter and have it take it's default, even when you specify another "late
Another argument parsing fix for ApiCall
When using named parameters, you can expect to be able to leave out any optional parameter and have it take it's default, even when you specify another "later" parameter. Luckily we already know all the defaults from reflection anyway.
show more ...
|
| 04acbb6f | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: fix named parameter handling in APICall
We cannot set missing paramerers to null. We need to make sure they are not set at all. |
| 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 |