Commit Graph

22 Commits

Author SHA1 Message Date
Michael bf5c8a2c43 API: several fixes to the Twitter/Statusnet API 2022-02-25 19:16:40 +00:00
Philipp Holzer c588b280d7
Fix all license header & be less aggressive 2022-01-07 00:35:28 +01:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp Holzer f580d8e5c0 extract "BaseApi::checkDefaults()" method for later usage 2021-11-30 01:07:57 -05:00
Hypolite Petovan 9cc675233d Add a second parameter to BaseApi::getRequest to enable API tests 2021-11-27 18:38:09 -05:00
Philipp Holzer 537b74f307
Inherit `ApiResponse` from `Response` 2021-11-27 12:40:54 +01:00
Philipp Holzer 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 Holzer 5879535822
Switch `static::$parameters` to `$this->parameters` 2021-11-14 23:49:07 +01:00
Philipp Holzer 489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Philipp Holzer 714f0febc4
Replace `$parameters` argument per method with `static::$parameters` 2021-11-14 23:49:05 +01:00
Philipp Holzer ea0f41ecf0
Transform ApiResponse::exit() into dynamic method 2021-11-12 20:03:27 +01:00
Philipp Holzer 319f91301d
Move API Response methods into an own class to make them mockable 2021-11-12 19:52:01 +01:00
Michael a6db8df92d Using the "extension" parameter 2021-11-09 19:40:39 +00:00
Michael fb6c3e2912 Simplify the output of api results 2021-11-09 06:42:59 +00:00
Hypolite Petovan 9935e8e711 Remove event.adjust field
- It was confusing and introduced complexity that wasn't worth the unclear gain
2021-10-03 13:42:32 -04:00
Michael 07d2dfcd60 Some more "convertForUriId" replacements 2021-07-10 12:58:48 +00:00
Michael 2a440c0bae Use "checkAllowedScope" instead of "login" 2021-06-08 12:00:22 +00:00
Michael acbe9ebf9e API: New classes for OAuth and basic auth 2021-06-08 06:32:24 +00:00
Michael e3d227f3c9 API: Parameter cleanup 2021-05-19 06:18:42 +00:00
Michael 49207a8624 Added scope check 2021-05-16 07:37:11 +00:00
Balázs Úr 054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Hypolite Petovan d3b3f716f8 [API] Add new endpoint api/friendica/events 2020-02-16 12:07:39 -05:00