Commit Graph

26 Commits

Author SHA1 Message Date
Michael Vogel
b38c9bed6f Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
2022-01-16 21:47:12 +01:00
Michael
dc48f9b8f0 White spaces 2022-01-16 20:17:31 +00:00
Michael
fd4926b0f3 More parameter handling improved 2022-01-16 18:04:05 +00:00
Michael
4724000d06 Unify request value handling 2022-01-16 14:04:20 +00:00
Michael
7c15d0160a Coding styles / "require_once" for removed file removed 2022-01-16 09:01:04 +00:00
Michael
f11bf08a7b Use the $request variable 2022-01-16 07:35:20 +00:00
Michael
c55c42b303 "DI" calls are replaced 2022-01-16 07:07:46 +00:00
Michael
f68c94db04 Some standards 2022-01-15 21:45:08 +00:00
Michael
95f085b7ac API: The legacy API finally moved 2022-01-15 21:38:19 +00:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Michael
03d2160690 Removed second ppst parameter 2021-11-30 21:41:10 +00:00
Michael
56f8adcb80 Merge remote-tracking branch 'upstream/2021.12-rc' into api-fixes 2021-11-30 19:07:24 +00:00
Philipp
f580d8e5c0 extract "BaseApi::checkDefaults()" method for later usage 2021-11-30 01:07:57 -05:00
Michael
33c8872c65 Merge remote-tracking branch 'upstream/2021.12-rc' into api-fixes 2021-11-30 05:00:46 +00:00
Hypolite Petovan
e2016bc67d Fix Photo delete endpoint
- Set the request variable type
- Fix the condition on a nonexistant item field
2021-11-29 06:29:38 -05:00
Michael
222b35684d API: Added more functions, fixed function names 2021-11-28 13:34:00 +00:00
Hypolite Petovan
9cc675233d Add a second parameter to BaseApi::getRequest to enable API tests 2021-11-27 18:38:09 -05:00
Philipp
537b74f307 Inherit ApiResponse from Response 2021-11-27 12:40:54 +01:00
Philipp
8bdd90066f Make BaseModule a real entity
- Add all dependencies, necessary to run the content (baseUrl, Arguments)
- Encapsulate all POST/GET/DELETE/PATCH/PUT methods as protected methods inside the BaseModule
- Return Module content ONLY per `BaseModule::run()` (including the Hook logic there as well)
2021-11-27 12:40:36 +01:00
Philipp
5879535822 Switch static::$parameters to $this->parameters 2021-11-14 23:49:07 +01:00
Philipp
489cd0884a Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Philipp
714f0febc4 Replace $parameters argument per method with static::$parameters 2021-11-14 23:49:05 +01:00
Philipp
e477cf215d Make API testable & move PhotoAlbum tests to new destination 2021-11-12 21:08:36 +01:00
Philipp
ea0f41ecf0 Transform ApiResponse::exit() into dynamic method 2021-11-12 20:03:27 +01:00
Philipp
319f91301d Move API Response methods into an own class to make them mockable 2021-11-12 19:52:01 +01:00
Michael
293775ab4a Photo delete is moved as well 2021-11-10 23:31:42 +00:00