Commit Graph

32239 Commits

Author SHA1 Message Date
Philipp 018275919c
Create interface for static Module calls 2021-11-14 23:30:04 +01:00
Hypolite Petovan 96996790f1
Merge pull request #10975 from annando/api3
Some more API functions moved
2021-11-14 17:28:36 -05:00
Philipp 2edb631b1f
Fix PHP-CS 2021-11-14 23:21:57 +01:00
Michael 66db55f0cd
Some more API functions moved 2021-11-14 23:21:54 +01:00
Hypolite Petovan d5703e350c
Merge pull request #10976 from nupplaphil/feat/api_tests
Regain API Testability
2021-11-14 17:19:36 -05:00
Philipp 6b7babd58f
Remove test for deprecated way of calling API methods 2021-11-12 22:46:18 +01:00
Philipp e7f84d4934
Move Api\unsupported tests and remove dependency to System::jsonExit() 2021-11-12 22:44:59 +01:00
Philipp c0219fe2fa
class type 2021-11-12 22:30:48 +01:00
Philipp 7797c3a0a8
Migrate API\error tests and fix ApiResponse for RSS/atom 2021-11-12 22:29:58 +01:00
Philipp 23939cd0f1
Mirate API\SavedSearches tests 2021-11-12 22:15:43 +01:00
Philipp de1e839a2b
Migrate API\StatusNetVersion 2021-11-12 22:12:28 +01:00
Philipp 829c43ba3b
Migrate Api\RateLimitStatus 2021-11-12 22:09:03 +01:00
Philipp 0757c00d52
Move Api\Help 2021-11-12 22:03:41 +01:00
Philipp 9482ef3c34
Update messages.po 2021-11-12 21:55:02 +01:00
Philipp bfe925aabe
Make PHP-CS happy and add (c) header 2021-11-12 21:50:02 +01:00
Philipp 2c407a7323
Small improvement 2021-11-12 21:38:38 +01:00
Philipp 6725f05ab2
Moved API\Notification tests 2021-11-12 21:35:21 +01:00
Philipp f2ca21935e
Move API\Photo testcases 2021-11-12 21:12:00 +01:00
Philipp e477cf215d
Make API testable & move PhotoAlbum tests to new destination 2021-11-12 21:08:36 +01:00
Philipp a0c5c91886
Simplify code 2021-11-12 20:13:04 +01:00
Philipp a9ddd6687b
Replace Logger:: with logger property 2021-11-12 20:08:30 +01:00
Philipp 5bfcc8b91c
Transform ApiResponse::unspported() into dynamic method 2021-11-12 20:07:05 +01:00
Philipp ebf56674f1
Transform ApiResponse::error() into dynamic method 2021-11-12 20:04:47 +01:00
Philipp ea0f41ecf0
Transform ApiResponse::exit() into dynamic method 2021-11-12 20:03:27 +01:00
Philipp 4309f814e0
Transform ApiResponse::formatData() into dynamic method 2021-11-12 19:59:16 +01:00
Philipp f28e64299e
Transform ApiResponse::createXML() into dynamic method 2021-11-12 19:56:37 +01:00
Philipp 319f91301d
Move API Response methods into an own class to make them mockable 2021-11-12 19:52:01 +01:00
Hypolite Petovan 893b8e5df3
Merge pull request #10968 from annando/api2
API: some more converted functions
2021-11-11 13:54:06 -05:00
Michael Vogel 4587cef677
Update src/Module/Api/Friendica/DirectMessages/Setseen.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-11 18:46:04 +01:00
Michael 293775ab4a Photo delete is moved as well 2021-11-10 23:31:42 +00:00
Michael 02210f285b API: some more converted functions 2021-11-10 23:07:46 +00:00
Hypolite Petovan fca9379348
Merge pull request #10967 from annando/api
API: some Functionality is transferred to new places
2021-11-10 08:45:50 -05:00
Michael 17fafd37dd Removed spaces 2021-11-10 07:38:48 +00:00
Michael 1518ad33ad API: Classes moved to the correct places according to their origin 2021-11-10 07:31:39 +00: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 0b7cad5cb5 Fix tests 2021-11-09 23:14:32 +00:00
Michael be5988af41 Fixing tests 2021-11-09 23:10:20 +00: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 28a28517e5 Fix code standards 2021-11-09 21:50:56 +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 b4fc1da045 Allow "POST" for all "DELETE" calls as well. 2021-11-09 06:56:40 +00:00
Michael fb6c3e2912 Simplify the output of api results 2021-11-09 06:42:59 +00:00
Michael Vogel 83056df565
Update src/Util/Arrays.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-09 06:23:04 +01:00
Michael da9d1e828b Commented out test functions 2021-11-08 22:12:10 +00:00
Michael a66bb09b40 Moved function to Arrays.php 2021-11-08 22:10:07 +00:00
Michael fbde999d0d Removed unneeded parameter 2021-11-08 21:58:21 +00:00
Michael ac1b8b7b3a Remove space 2021-11-08 21:54:55 +00:00
Michael 3e676f9cf0 Fixed tabs 2021-11-08 21:53:34 +00:00