Commit graph

36 commits

Author SHA1 Message Date
Michael 89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Hypolite Petovan 9e71610711 Make BaseApi->checkAllowedScope into an object method
- It isn't called from static contexts anymore
2023-10-11 09:43:57 -04:00
Hypolite Petovan 642baa1f2a Rename ApipResponse->exit* methods to better show their meaning 2023-09-24 07:08:16 -04:00
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Roland Häder eaed3945d1
Changed:
- used `$this->getRequestValue($request, 'foo', <bar>)` instead of `$request['foo'] ?? <bar>`
- fixed wrong variable naming
- changed double-quotes to single
- see https://github.com/friendica/friendica/issues/11631#issuecomment-1196410497
2022-07-29 00:38:46 +02:00
Michael 51dcfe134e fixing some more tests 2022-01-16 20:58:58 +00:00
Michael dc48f9b8f0 White spaces 2022-01-16 20:17:31 +00:00
Michael 0e15715088 Simplifying extension access 2022-01-16 19:38:59 +00:00
Michael 344d514857 Replaced "filter_input" with the new request value function 2022-01-16 16:40:13 +00:00
Michael 7b68a5956e Improved handling of boolean input values 2022-01-16 09:24:35 +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 95f085b7ac API: The legacy API finally moved 2022-01-15 21:38:19 +00:00
Michael 9414edd64a API: Functionality moved to new places 2022-01-06 07:34:16 +00:00
Philipp 322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp Holzer dbfe918a8b
Fix tests 2021-12-05 20:34:01 +01:00
Philipp Holzer 6b03ee2922
Re enable UpdateProfile test 2021-12-05 20:34:00 +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 Holzer a88cc8d5c8 Replace DI::apiResponse()->exit() with $this->response->exit() 2021-11-30 01:08:00 -05:00
Michael 71f7679204 Fix function name 2021-11-28 21:40:38 +00:00
Philipp Holzer 056702c1e0
Fixing wrong inherited methodsyntax 2021-11-27 19:58:24 +01: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
Michael 299d70ca1d Standards 2021-11-24 23:31:10 +00:00
Michael 260ee13d07 Standards 2021-11-24 23:24:35 +00:00
Michael 242fd646d2 Formatting 2021-11-24 23:06:28 +00:00
Michael c4d52feea5 Many API calls moved 2021-11-24 23:03:34 +00:00
Michael 1f79d25ffc Replaced "api_date" 2021-11-18 21:43:13 +00: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 1518ad33ad API: Classes moved to the correct places according to their origin 2021-11-10 07:31:39 +00:00