Hypolite Petovan
1874a32728
Happy New Year 2023!
2023-01-01 09:36:24 -05:00
Philipp
4f1bb0d274
Use X-REQUEST-ID for Error pages
2022-12-26 21:18:05 +01:00
Michael
5312b23f03
Don't send the header
2022-12-12 03:13:24 +00:00
Roland Häder
da66730e4f
Rewrite:
...
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item
- also rewrote some array initialization:
From:
````
<?php
$arr = [];
$arr['foo'] = "FOO";
````
To:
````
<?php
$arr['foo'] = "FOO";
````
- added a few type-hints
2022-10-15 00:44:06 +02:00
Michael
f7b85092b0
Some more changed log levels
2022-08-31 05:01:22 +00:00
Hypolite Petovan
71084cf9f0
Use L10n->tt instead of t() for plural string in Module\BaseApi
2022-08-08 02:08:43 -04:00
Philipp
4e67bfed8d
Use Args::getMethod() at various places
2022-01-04 20:59:26 +01: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
Michael
0a3026abce
Issue 11101: Fix API authentification
2021-12-17 07:04:52 +00:00
Michael
799baeda10
Issue 11063: Fix check for current user
2021-12-04 04:30:46 +00:00
Philipp
2dc60cfd33
Make API call permission checks more reliable
...
- don't need to inherit every Module method anymore
2021-11-30 01:07:59 -05:00
Philipp
2e4d654c0a
Make $_REQUEST processing independent of sub-calls
...
- Move HTTPInputData::process() into App::runFrontend()
- Pass $_REQUEST (including processed Input) to every Module method
- Delete $_POST parameters at Module post() calls because of $_REQUEST
2021-11-30 01:07:58 -05:00
Philipp
f580d8e5c0
extract "BaseApi::checkDefaults()" method for later usage
2021-11-30 01:07:57 -05:00
Philipp
d576bb136b
Fix BaseApi and corresponding tests
2021-11-28 13:11:12 +01: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
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