Commit graph

70 commits

Author SHA1 Message Date
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
Michael
0e3c8e3f5e Mixed parameter order 2021-11-26 08:16:06 +00:00
Michael
fb47389c69 API: Fix profile_url handling / missing constant 2021-11-26 07:55:02 +00:00
Michael
a3aab4a75a Entities, Source and api functions rearranged 2021-11-24 06:44:25 +00:00
Michael
a4ef4589e6 Reworked friendship API endpoints 2021-11-21 16:59:09 +00:00
Michael
0e5f876680 function moved 2021-11-21 09:55:42 +00:00
Michael
2c6afe65a7 Use correct function to fetch the self user 2021-11-21 00:26:35 +00:00
Michael
ae99144f57 Tests again 2021-11-21 00:15:36 +00:00
Michael
0f09b4f636 Fixing (some) tests 2021-11-20 23:47:03 +00:00
Michael
647ecd4bd3 Relocate RSS header stuff, cleaning up the code 2021-11-20 13:44:12 +00:00
Michael
4327ccddcb Some more removed functions and parameters 2021-11-20 09:36:17 +00:00
Michael
8fd738f550 Removed "api_get_user" 2021-11-18 22:20:19 +00:00
Michael
b67c10812a Merge remote-tracking branch 'upstream/develop' into api4 2021-11-18 20:15:57 +00:00
Michael
7c03eba98e Removed unused code 2021-11-18 14:49:12 +00: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
319f91301d
Move API Response methods into an own class to make them mockable 2021-11-12 19:52:01 +01:00
Michael Vogel
58ffded0c8
Update src/Module/BaseApi.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-10 04:44:59 +01:00
Michael
1c84928727 Fix test 2021-11-09 23:04:07 +00:00
Michael
bbc4fe851b "init" removed, moved error function 2021-11-09 22:59:58 +00:00
Michael
b6943aff36 API call rate_limit_status moved 2021-11-09 21:41:37 +00: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
Michael
a66bb09b40 Moved function to Arrays.php 2021-11-08 22:10:07 +00:00
Michael
f5b47fccce API: spme Functionality is transferred to new places 2021-11-08 21:35:41 +00:00
Michael
28090bd793 Get rid of App->user completely 2021-08-08 19:30:21 +00:00
Michael
fc283ab928 Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
Michael
178bc543e3 New founction to count threads 2021-07-08 17:32:41 +00:00
Michael
f29bd23ea8 New function to convert BBCode for a given ID 2021-07-08 13:47:46 +00:00
Michael
6e789ec19a No need for +1 and -1 2021-06-16 17:57:01 +00:00
Michael
78d4aff878 Set the "Link" header 2021-06-16 15:02:33 +00:00
Michael
385c03364f The function is now protected again 2021-06-08 20:45:58 +00:00
Michael
e4be1e0cd5 Get rid of "api_user()" function 2021-06-08 20:41:46 +00:00
Michael
2a440c0bae Use "checkAllowedScope" instead of "login" 2021-06-08 12:00:22 +00:00
Michael
9720ee2c20 Rearranged scope check 2021-06-08 09:11:56 +00:00
Michael
11c8dfe73a Unified request for uid 2021-06-08 08:28:14 +00:00
Michael
85217941e3 Simplified code 2021-06-08 08:04:12 +00:00
Michael
126e281165 Improved documentation 2021-06-08 06:39:23 +00:00
Michael
acbe9ebf9e API: New classes for OAuth and basic auth 2021-06-08 06:32:24 +00:00
Michael
9c59bcb6a5 Support OAuth for the legacy API 2021-06-02 22:11:21 +00:00
Michael
c3c6f3c8d3 Code style conventions 2021-05-29 10:40:47 +00:00
Michael
97356ed617 API: Unified request parameter handling 2021-05-28 06:10:32 +00:00
Michael
b3b9c51dbe Reduced log level 2021-05-19 07:02:12 +00:00
Michael
ce427b248e Central function to process request parameters 2021-05-18 06:31:22 +00:00
Michael
49207a8624 Added scope check 2021-05-16 07:37:11 +00:00
Michael
1cc341033f API: We now can post statuses via API 2021-05-15 22:40:57 +00:00
Michael
3aa883f1e3 API: List handling, dummy endpoints 2021-05-13 21:15:32 +00:00
Michael
b18073d5a8 Repurposed OAuth frontend handling, store the scope 2021-05-13 14:58:55 +00:00
Michael
132e08edb8 Whitespaces ... 2021-05-13 11:33:07 +00:00