amcmanu3
73c4adbdbf
Appease the linter
2023-09-04 18:24:10 -04:00
amcmanu3
e716198af4
Appease the linter
2023-09-04 18:19:29 -04:00
amcmanu3
10f696edcc
Make server logs call API
2023-09-04 13:54:24 -04:00
amcmanu3
76526916eb
Add customize to handlers
2023-09-04 13:31:05 -04:00
amcmanu3
e79f33fcc4
Add login photo to API v2
2023-09-04 13:30:48 -04:00
amcmanu3
78b689b7ec
Fix security issue in logical expression
2023-09-04 12:53:06 -04:00
amcmanu3
adaaff3d23
Add master server dir to API v2
2023-09-04 12:34:39 -04:00
amcmanu3
153781c78e
Add cache refresh to api v2
2023-09-04 12:12:02 -04:00
amcmanu3
a6b7b84b3b
Add get/delete functions for api keys
2023-09-04 11:42:07 -04:00
amcmanu3
6a4a9f77d9
Add create new API key from api v2
2023-09-03 23:30:26 -04:00
amcmanu3
afb7b91b7a
Add files functions to API v2
2023-09-03 16:15:38 -04:00
amcmanu3
7ff77c598f
Add upload support for apiv2
...
This should get changed once upload handler is gone.
2023-09-03 13:22:48 -04:00
Silversthorn
eb6d9560f8
Implementations of Prometheus Client
2023-09-03 16:04:28 +02:00
Andrew
ff1ba23830
Add updates to notifs
2023-09-02 19:35:16 -04:00
Silversthorn
34fe9c1326
Using API Call for Status Page
2023-09-02 21:51:28 +02:00
Andrew
9d870f0611
Check for valid uuid
2023-09-01 20:15:33 -04:00
Andrew
f03e8d48a2
Appease the linter
2023-09-01 17:04:56 -04:00
Andrew
02df6de6d5
Remove prints. Remove test notif
2023-09-01 14:54:38 -04:00
Andrew
6c1e1b4737
Add Arcadia Notifications to Front end
2023-09-01 14:48:20 -04:00
amcmanu3
27f6c4c926
Add unzip/dir request handler to api v2
2023-08-31 21:35:30 -04:00
amcmanu3
d9e405e56c
Add eula to download
2023-08-27 14:55:21 -04:00
Silversthorn
58cdfe9ee5
Fixing Black issues
2023-08-27 14:10:20 +02:00
Silversthorn
29f7399708
Adding API route for history stats
...
Fixing close db connexion for stats
2023-08-27 13:50:22 +02:00
amcmanu3
4f7d18362c
Add download server option for bedrock servers
2023-08-25 13:54:31 -04:00
Andrew
14c0065124
Edit API handler to thread server creation. (Untested)
2023-08-23 20:44:11 -04:00
Andrew
52e44f090e
Add audit log end point
2023-08-20 17:03:01 -04:00
amcmanu3
a90dd546a1
Add role detection to creation
2023-08-17 17:14:51 -04:00
amcmanu3
4358a78e93
Require category. Not eula
2023-08-17 15:11:11 -04:00
amcmanu3
134b35b2dd
Setup users for API handling
2023-08-16 18:00:00 -04:00
amcmanu3
6f535a11b0
Use API to make/edit roles
2023-08-16 13:34:52 -04:00
amcmanu3
185702169a
Make keywords an array
2023-08-15 16:29:53 -04:00
amcmanu3
93428b2e05
Use API for config.json
2023-08-15 16:09:06 -04:00
amcmanu3
a1f0e7399f
Merge branch 'dev' into feature/discord-webhooks
2023-08-04 15:19:33 -04:00
amcmanu3
4e0743bc1f
Merge branch 'dev' into refactor/remote-comms-patch-2
2023-08-04 15:19:04 -04:00
Andrew
b23a08be5f
Add eula agree to api
2023-07-13 10:39:25 -04:00
amcmanu3
76e1ee471a
Add backups API
2023-07-12 18:01:14 -04:00
Andrew
45b0264499
Fix enabling schedules from schedule list
2023-07-04 12:10:59 -04:00
amcmanu3
ad7ba9d6a7
Fix logical issue
2023-06-05 18:20:37 -04:00
amcmanu3
4ef31864ca
Add delete file
2023-06-05 18:03:06 -04:00
amcmanu3
768d3c0d14
Move files request to files API
2023-06-04 20:55:48 -04:00
amcmanu3
12088f1332
Fix response data
2023-06-04 17:47:56 -04:00
amcmanu3
1ff9bc9e83
Setup backup file trees through API
2023-06-04 14:43:45 -04:00
amcmanu3
27cb3dc37a
Remove backups delete/restore from ajax handler
2023-06-04 11:48:39 -04:00
amcmanu3
7db5f400ab
Add backup delete and restore functions to API
2023-06-04 11:42:08 -04:00
amcmanu3
2ebbb1fdab
Fix webhook patch
2023-06-03 22:40:39 -04:00
amcmanu3
accbb89880
Add test webhook function
2023-06-03 18:11:00 -04:00
amcmanu3
0a2b8694ac
Add webhook patch
2023-06-03 15:24:28 -04:00
amcmanu3
0877f650f4
Add api methods
2023-06-03 15:05:44 -04:00
amcmanu3
cbd988ee5b
Add api routes
2023-06-03 15:05:33 -04:00
Andrew
fb16be6a64
Add index handlers (aware of the lint issue)
2023-05-20 17:49:51 -04:00
Andrew
e6723d9ebc
Add new backup routes
2023-05-20 17:49:13 -04:00
amcmanu3
1ab409f5cb
Add check for parent in schedules
2023-05-07 13:51:12 -04:00
amcmanu3
7aa0776cb5
Laying groundwork for roles patch
2023-03-13 15:54:44 -04:00
amcmanu3
0b1d2d5dc6
Fix roles manager being none
2023-03-13 13:54:59 -04:00
Andrew
3f3ba0ad81
Fix minimums
2023-03-10 18:58:19 -05:00
Andrew
d6b57203a1
Fix auto start delay patch
2023-03-10 18:55:13 -05:00
Andrew
4729588e31
Fix server config update_url
2023-03-10 18:25:26 -05:00
amcmanu3
1804d35156
Add error checking on cron validation
2023-03-04 22:45:31 -05:00
amcmanu3
c02472fb16
Send schdules via API
2023-03-04 20:10:10 -05:00
amcmanu3
ed028ec66d
Add auth check on get
2023-03-03 19:14:44 -05:00
amcmanu3
71e9da50da
Better format for finish
2023-03-03 18:47:36 -05:00
amcmanu3
1288b6afe6
Add and remove schdules through api
2023-03-03 18:23:44 -05:00
amcmanu3
3edf5d0a41
remove unused import
2023-03-03 17:32:27 -05:00
amcmanu3
c23bfdea8c
Cleanup index
2023-03-03 17:31:29 -05:00
amcmanu3
40bbc2e790
Remove print statement
2023-03-03 17:16:44 -05:00
amcmanu3
317ed3e667
only allow basic users rights to edit some fields
2023-03-03 17:16:20 -05:00
amcmanu3
a373943ae6
Cleanup ajax handler
...
send audit log entry on stdin call
2023-03-02 13:24:49 -05:00
amcmanu3
c0381da880
Fix bug with unloaded server delete
2023-03-01 14:59:30 -05:00
amcmanu3
c51d940234
Allow unloaded servers to be deleted API
2023-03-01 14:38:14 -05:00
Andrew
491415c7fa
Re-black codebase with new standard
2023-02-15 18:01:21 -05:00
Andrew
a1e8b7afe7
Make server directories non-configurable
2022-12-17 12:21:15 -05:00
Zedifus
c1374b5c7f
Merge branch 'dev' into bug/port-constraint
2022-10-05 22:12:14 +01:00
amcmanu3
ad41960338
Appease the linter
2022-10-04 16:23:29 -04:00
amcmanu3
3681f52856
Fix scheduled task disable
2022-10-04 16:07:08 -04:00
Andrew
2e212cc788
Add port constraint for all server creation & api
2022-10-04 15:55:52 -04:00
Zedifus
7cc8503941
Merge branch 'dev' into enhancement/themes
2022-10-02 19:52:56 +01:00
Andrew
8e1534e268
Add arguments to API routes
2022-09-26 21:31:44 -04:00
Andrew
046943c250
Fix bug with API stdin
2022-09-25 12:14:01 -04:00
Andrew
82c0452f55
Add pfp caching for users
2022-09-12 15:34:47 -04:00
amcmanu3
2b35da71fc
Fix logic with gravatar email
2022-09-09 15:04:45 -04:00
amcmanu3
375df0c27d
Only check for gravatar if internet
2022-09-09 15:00:08 -04:00
Andrew
cafa720bba
Fix server quotas. Removed un-used perms columns
2022-08-20 13:00:20 -04:00
Andrew
552a2e26c2
Working role managers.
...
TODO: Add super user select option
2022-08-20 08:49:38 -04:00
amcmanu3
c1d16522d0
Add manager field to users
2022-08-19 13:09:59 -04:00
luukas
147f178c87
Add a basic API for modifying schedules.
...
THIS IS VERY UNTESTED AND WILL BE EXPANDED TO FULL CRUD FOR SCHEDULES
2022-06-23 01:57:29 +03:00
amcmanu3
35518e960f
Fix username capital issues once and for all
2022-06-16 09:52:21 -04:00
luukas
581b6734d3
Remove unused server_uuid variables to fix Pylint
2022-06-16 15:31:11 +03:00
luukas
e009ff9819
Use relative paths for the jarfile and logs
2022-06-16 02:10:26 +03:00
luukas
f343db1a30
Fix inconsistency on the jsonschema API endpoint
2022-06-10 00:10:54 +03:00
Silversthorn
9e4c8e99b1
Merge branch 'dev' into dev-StatsDBImprovement
2022-06-01 23:52:49 +02:00
luukas
45a1b835fb
Fix server error checking in API stdin endpoint
2022-06-01 14:17:33 +03:00
luukas
e0b0e52bd5
Add stdin route for the API
2022-05-31 00:11:17 +03:00
Silversthorn
37bda32164
Fixing moved functions calls
2022-05-30 07:36:25 +02:00
Silversthorn
99b28efd33
Merge branch 'dev' into dev-StatsDBImprovement
2022-05-26 15:39:52 +02:00
Silversthorn
8423cc24c1
I'm breaking/fixing stuff
2022-05-26 14:50:20 +02:00
luukas
8ce7a96071
Use a better ANSI escape regex in the API logs
2022-05-25 18:41:41 +03:00
luukas
2e51fa9629
Remove newline characters from API file logs
2022-05-25 18:41:16 +03:00
luukas
4b707aa9d1
Don't use get_latest_server_stats
...
Use get_server_stats_by_id instead of get_latest_server_stats
The reasoning behind this is that all usages of get_latest_server_stats
had `DatabaseShortcuts.return_rows(latest)[0]`, which
get_server_stats_by_id already did
2022-05-25 14:43:05 +03:00
luukas
166272e12c
Replace .count() != 0
with .exists()
2022-05-25 14:24:34 +03:00
luukas
2ac9118152
Merge remote's bugfix/api-v2-bugfixes to local
2022-05-25 00:58:32 +03:00
luukas
cbc73b7e92
Fix routing for the user permissions handler
2022-05-25 00:58:10 +03:00
luukas
57ef5e27dd
Add route for viewing user Crafty permissions
...
The route includes the permission mask, counters and limits
2022-05-25 00:55:49 +03:00
luukas
6dadce2c9a
Enable changing more of yourself with superuser
...
Enable modifying your own superuser status, permissions and roles if you
have superuser status
2022-05-25 00:43:49 +03:00
luukas
b0d342e949
Check if something is in a dict with a simpler way
...
* Replace `data.get("key", None) is not None` with `"key" in data`
2022-05-25 00:39:16 +03:00
luukas
2aa2d14f5e
Improve the invalidate tokens API handler
...
* Remove the TODO
* Replace the Console.info with logger.debug
2022-05-25 00:35:11 +03:00
luukas
9a9d101015
Add pasword hashing to API user modification
2022-05-25 00:32:31 +03:00
luukas
54ff888002
Fix user modification via the API
2022-05-25 00:29:31 +03:00
Zedifus
d0596af4c9
Add exemption orjson no-member falsepositive
2022-05-23 22:54:06 +01:00
luukas
4c981f50c2
Add more permission validation in user creation
2022-05-23 22:45:27 +03:00
luukas
73175d0f82
Remove the root example from the new server schema
...
* It messed up https://json-schema-faker.js.org
* It wasn't updated for agree_to_eula
2022-05-19 16:32:18 +03:00
luukas
f763fa9d0c
Fix API v2 server modification
2022-05-19 16:01:03 +03:00
luukas
0ecc0a62ca
Fix a comment regarding the Logs permission
2022-05-19 00:04:14 +03:00
luukas
2b34e2c824
Remove role_id from role modify response
2022-05-18 23:41:28 +03:00
luukas
d64756a30c
Make modify role not fetch the role again
2022-05-18 23:13:22 +03:00
luukas
ae7984c784
Change modify role's server id type to integer
2022-05-18 23:11:40 +03:00
luukas
4c397ff454
Only allow number IDs to the user handlers
2022-05-18 22:54:44 +03:00
luukas
2bc26ef3fd
Check invalid IDs on roles
...
* Only allow number IDs to the role handlers
* Catch DoesNotExist errors
2022-05-18 22:34:33 +03:00
luukas
4c64497a2f
Add a JSON schema route
2022-05-18 15:58:54 +03:00
luukas
5bff6c12b4
Fix cq degradation: R1721
2022-05-18 13:05:58 +03:00
luukas
559a345f25
Merge branch 'dev' into merge/api-v2
2022-05-18 01:49:19 +03:00
luukas
14665042c6
Add and improve audit logging in the API
2022-05-18 01:34:31 +03:00
luukas
f9e5b9bc5f
Fix the duplicated add_server_creation in the API
2022-05-18 01:23:32 +03:00
luukas
930c6936d9
Add more advanced role APIs
2022-05-10 02:08:49 +03:00
luukas
bf59e2de6c
Add and fix API v2 and db
...
* Add basic role routes
* Add API v2 404 handler
* Add API v2 home handler pointing to the wiki
* Add tons more todos
* Add get_*_columns and get_*_column functions for many db models
* Modify and add tons of model and controller functions
2022-05-08 00:07:55 +03:00
luukas
721c9cfe12
Add the server creation endpoint
2022-05-05 14:02:23 +03:00
luukas
53459d83dc
Merge branch 'feature/api-v2' into merge/api-v2
2022-05-05 03:32:09 +03:00
luukas
20d32c04ce
Fix login and token stuff
2022-04-14 18:48:46 +03:00
luukas
1aa0d65cf7
Merge branch feature/external-frontend to feature/api-v2 without the frontend
2022-04-14 15:33:53 +03:00