Commit graph

18 commits

Author SHA1 Message Date
Tadhg Boyle
5e07ac2d70 Create and utilize Text class, add deprecation warnings 2022-06-13 22:44:01 -06:00
Robin
36b83c3beb Merge branch 'v2' into db-update 2022-05-11 11:45:20 +02:00
Partydragen
4fa96667da Fix missing content & add received_at to notification endpoint 2022-05-06 16:09:39 +02:00
Tadhg Boyle
40ef677c25 Init 2022-05-01 23:16:22 -07:00
Robin
7eca85b6d1 Ensure data in urls is properly encoded 2022-04-02 17:43:21 +02:00
Tadhg Boyle
ad17142a16
Misc cleanup (#2566) 2022-01-15 15:18:05 -08:00
Tadhg Boyle
c6a9f86f4d
API auth revamp (#2564) 2022-01-15 11:48:52 -08:00
Tadhg Boyle
1680427f6f Add API endpoint "route aliases"
This lets us make the endpoints main routes different while keeping backwards compatibility and REST-ifying the API
2022-01-10 01:37:06 -08:00
Tadhg
e0133a5cd5 Get PHP-CS to pass! 2021-12-07 22:14:12 -08:00
Tadhg
a9c678e4d4 convert all array(...) syntax to [...] 2021-10-29 22:00:05 -07:00
Tadhg
b9b8b21309 rename DB::query() and DB_Custom::query() to selectQuery() [keeps + deprecates old query() method] 2021-10-25 15:42:39 -07:00
Tadhg
103cab4e01 Add "Method" column to API endpoints table 2021-02-21 13:15:07 -08:00
Tadhg
4954e03f1e fix GetNotificationsEndpoint 2020-12-28 09:29:23 -08:00
Derkades
8c29a6c897 Fix getnotifications error 6 2020-12-28 11:27:40 +01:00
Tadhg
0f729d4edb fix #2002 2020-12-27 14:34:12 -08:00
Derkades
281b424b59 Style fixes 2020-12-27 14:42:47 +01:00
Derkades
1c1cf834ef Remove unnecessary isValidated checking 2020-12-27 14:24:57 +01:00
Tadhg Boyle
f93ac78041
Major API Changes (#1836)
* continue updating api

* Add Ingame Group Name dropdown if groups were sent by plugin

* add validation function for params, add docblocks

* revert call_user_func

* wip

* Modular API endpoints! WIP

* Modular endpoints wip

* fix some errors, get discord linking working again

* Add panel page for API Endpoints

* revert lastid rename

* Add Endpoint descriptions

* clean up some endpoints

* wip

* WIP (booleans, intval, mc integration work)

* wip

* discord secondary groups - WIP

* Fix some group sync form things

* add writable info to Server Compatibility. other fixes WIP

* redo group sync page logic

* fix some validation logic

* Add group order to group list

* Endpoint autoloader

* dont need that variable

* Add listUsers filters

* Rework #1839

* Move banned/active filters to query

* rename 'active' to 'verified'

* Use boolval function

* Use double negation instead of boolval

* use bool cast

* WIP syncing Secondary Groups

* wip Discord Role Syncing

* accidental html

* wrong order

* wip clean endpoints

* Test/Fix all endpoints

We are getting close to completion :confetti_balls:

* Add missing translations

* new class for Discord functions

* Add check if hooks exists on upgrade

* add missing admin permissions on install

* add discord role in setGroup endpoint

* #1876 - Add user language to userInfo endpoint

* Store report dates using unix timestamp

* Get language name via join in userInfo endpoint

* Add default language to info endpoint

* Uninstall instructions

* Fix user logic for real

* simpify discordBotRequest return value

Co-authored-by: samerton <samerton@users.noreply.github.com>
Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00