Feature Request: Cleaner and more RESTful API in Pterodactyl v2 #5551
Closed
voidvalue-dev
started this conversation in
Feature Requests
Replies: 2 comments
-
|
You cannot send data with a |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
okay |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if Pterodactyl v2 included a new, cleaner, and more RESTful API
For example, when fetching servers information:
{ "status": null, "is_suspended": false, "is_installing": false, "is_transferring": false }Fields like
is_suspended,is_installing, oris_transferringare unnecessary, because the server’s current state is already indicated bystatus.Another example: some actions use POST when they should use more appropriate HTTP methods. For instance:
Delete Files currently uses:
POST /api/client/servers/{server}/files/delete
This could instead be a DELETE request:
DELETE /api/client/servers/{server}/files
Beta Was this translation helpful? Give feedback.
All reactions