Files
2026-10-20 15:46:16 -04:00

701 lines
33 KiB
JSON

[
{
"request": "GET /api/admin/users",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 1,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
},
{
"object": "user",
"attributes": {
"id": 2,
"external_id": "ext-owner",
"uuid": "00000000-0000-4000-8000-000000000002",
"username": "owner",
"email": "owner@example.test",
"first_name": "Olive",
"last_name": "Owner",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/f17712239715b86f1dfd9ba550b7f607",
"avatar": null,
"servers_count": 2,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
},
{
"object": "user",
"attributes": {
"id": 3,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000003",
"username": "helper",
"email": "helper@example.test",
"first_name": "Hal",
"last_name": "Helper",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/db133fd5a01229dc12009a42eaa2e3c3",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 1,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
},
{
"object": "user",
"attributes": {
"id": 4,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000004",
"username": "limited",
"email": "limited@example.test",
"first_name": "Lim",
"last_name": "Ited",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/6a005a5825ef8aa17b476a64d40e7aab",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 1,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
},
{
"object": "user",
"attributes": {
"id": 5,
"external_id": "ext-spare",
"uuid": "00000000-0000-4000-8000-000000000005",
"username": "spare",
"email": "Spare.User@Example.test",
"first_name": "Spare",
"last_name": "User",
"language": "en",
"root_admin": false,
"2fa": true,
"image": "https://gravatar.com/avatar/a39e5ecd8b4ace13515da9e4a95eeec8",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
}
],
"meta": {
"pagination": {
"total": 5,
"count": 5,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/users?include=servers",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 1,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": [
{
"object": "server",
"attributes": {
"id": 3,
"external_id": "ext-lab",
"uuid": "5e7f0003-0000-4000-8000-000000000003",
"identifier": "5e7f0003",
"name": "Admin Lab",
"description": "Testing ground",
"status": null,
"suspended": false,
"limits": {
"memory": 512,
"swap": -1,
"disk": 1024,
"io": 10,
"cpu": 50,
"threads": null,
"oom_disabled": true
},
"feature_limits": {
"databases": 1,
"allocations": 1,
"backups": 1
},
"user": 1,
"node": 2,
"allocation": 8,
"egg": 1,
"container": {
"startup_command": "java -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_21",
"skip_scripts": false,
"installed": 1,
"environment": {
"SERVER_JARFILE": "server.jar",
"BUILD_NUMBER": "latest",
"HIDDEN_TOKEN": "secret",
"STARTUP": "java -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "eu-west",
"P_SERVER_UUID": "5e7f0003-0000-4000-8000-000000000003",
"P_SERVER_ALLOCATION_LIMIT": 1
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
}
]
}
}
}
},
{
"object": "user",
"attributes": {
"id": 2,
"external_id": "ext-owner",
"uuid": "00000000-0000-4000-8000-000000000002",
"username": "owner",
"email": "owner@example.test",
"first_name": "Olive",
"last_name": "Owner",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/f17712239715b86f1dfd9ba550b7f607",
"avatar": null,
"servers_count": 2,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": [
{
"object": "server",
"attributes": {
"id": 1,
"external_id": "ext-survival",
"uuid": "5e7f0001-0000-4000-8000-000000000001",
"identifier": "5e7f0001",
"name": "Survival",
"description": "Main survival world",
"status": null,
"suspended": false,
"limits": {
"memory": 2048,
"swap": 512,
"disk": 10240,
"io": 500,
"cpu": 200,
"threads": "0-3",
"oom_disabled": true
},
"feature_limits": {
"databases": 5,
"allocations": 5,
"backups": 5
},
"user": 2,
"node": 1,
"allocation": 1,
"egg": 1,
"container": {
"startup_command": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_21",
"skip_scripts": false,
"installed": 1,
"environment": {
"SERVER_JARFILE": "paper.jar",
"BUILD_NUMBER": "latest",
"HIDDEN_TOKEN": "hidden-value",
"STARTUP": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "us-east",
"P_SERVER_UUID": "5e7f0001-0000-4000-8000-000000000001",
"P_SERVER_ALLOCATION_LIMIT": 5
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
},
{
"object": "server",
"attributes": {
"id": 2,
"external_id": null,
"uuid": "5e7f0002-0000-4000-8000-000000000002",
"identifier": "5e7f0002",
"name": "Creative",
"description": "",
"status": "installing",
"suspended": false,
"limits": {
"memory": 1024,
"swap": 0,
"disk": 5120,
"io": 500,
"cpu": 0,
"threads": null,
"oom_disabled": false
},
"feature_limits": {
"databases": 0,
"allocations": null,
"backups": 0
},
"user": 2,
"node": 1,
"allocation": 3,
"egg": 2,
"container": {
"startup_command": "java -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_17",
"skip_scripts": true,
"installed": 0,
"environment": {
"SERVER_JARFILE": "child.jar",
"STARTUP": "java -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "us-east",
"P_SERVER_UUID": "5e7f0002-0000-4000-8000-000000000002",
"P_SERVER_ALLOCATION_LIMIT": null
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
}
]
}
}
}
},
{
"object": "user",
"attributes": {
"id": 3,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000003",
"username": "helper",
"email": "helper@example.test",
"first_name": "Hal",
"last_name": "Helper",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/db133fd5a01229dc12009a42eaa2e3c3",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 1,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": []
}
}
}
},
{
"object": "user",
"attributes": {
"id": 4,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000004",
"username": "limited",
"email": "limited@example.test",
"first_name": "Lim",
"last_name": "Ited",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/6a005a5825ef8aa17b476a64d40e7aab",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 1,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": []
}
}
}
},
{
"object": "user",
"attributes": {
"id": 5,
"external_id": "ext-spare",
"uuid": "00000000-0000-4000-8000-000000000005",
"username": "spare",
"email": "Spare.User@Example.test",
"first_name": "Spare",
"last_name": "User",
"language": "en",
"root_admin": false,
"2fa": true,
"image": "https://gravatar.com/avatar/a39e5ecd8b4ace13515da9e4a95eeec8",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": []
}
}
}
}
],
"meta": {
"pagination": {
"total": 5,
"count": 5,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/users?filter[email]=none@example.test",
"status": 200,
"body": {
"object": "list",
"data": [],
"meta": {
"pagination": {
"total": 0,
"count": 0,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/users?per_page=1",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 1,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
}
],
"meta": {
"pagination": {
"total": 5,
"count": 1,
"per_page": 1,
"current_page": 1,
"total_pages": 5,
"links": {
"next": "https://panel.example.test/api/admin/users?page=2"
}
}
}
}
},
{
"request": "GET /api/admin/users?per_page=1&page=2",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "user",
"attributes": {
"id": 2,
"external_id": "ext-owner",
"uuid": "00000000-0000-4000-8000-000000000002",
"username": "owner",
"email": "owner@example.test",
"first_name": "Olive",
"last_name": "Owner",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/f17712239715b86f1dfd9ba550b7f607",
"avatar": null,
"servers_count": 2,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
}
],
"meta": {
"pagination": {
"total": 5,
"count": 1,
"per_page": 1,
"current_page": 2,
"total_pages": 5,
"links": {
"previous": "https://panel.example.test/api/admin/users?page=1",
"next": "https://panel.example.test/api/admin/users?page=3"
}
}
}
}
},
{
"request": "GET /api/admin/users?per_page=1&page=99",
"status": 200,
"body": {
"object": "list",
"data": [],
"meta": {
"pagination": {
"total": 5,
"count": 0,
"per_page": 1,
"current_page": 99,
"total_pages": 5,
"links": {
"previous": "https://panel.example.test/api/admin/users?page=98"
}
}
}
}
},
{
"request": "GET /api/admin/users?filter[search]=owner&include=servers",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "user",
"attributes": {
"id": 2,
"external_id": "ext-owner",
"uuid": "00000000-0000-4000-8000-000000000002",
"username": "owner",
"email": "owner@example.test",
"first_name": "Olive",
"last_name": "Owner",
"language": "en",
"root_admin": false,
"2fa": false,
"image": "https://gravatar.com/avatar/f17712239715b86f1dfd9ba550b7f607",
"avatar": null,
"servers_count": 2,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": [
{
"object": "server",
"attributes": {
"id": 1,
"external_id": "ext-survival",
"uuid": "5e7f0001-0000-4000-8000-000000000001",
"identifier": "5e7f0001",
"name": "Survival",
"description": "Main survival world",
"status": null,
"suspended": false,
"limits": {
"memory": 2048,
"swap": 512,
"disk": 10240,
"io": 500,
"cpu": 200,
"threads": "0-3",
"oom_disabled": true
},
"feature_limits": {
"databases": 5,
"allocations": 5,
"backups": 5
},
"user": 2,
"node": 1,
"allocation": 1,
"egg": 1,
"container": {
"startup_command": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_21",
"skip_scripts": false,
"installed": 1,
"environment": {
"SERVER_JARFILE": "paper.jar",
"BUILD_NUMBER": "latest",
"HIDDEN_TOKEN": "hidden-value",
"STARTUP": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "us-east",
"P_SERVER_UUID": "5e7f0001-0000-4000-8000-000000000001",
"P_SERVER_ALLOCATION_LIMIT": 5
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
},
{
"object": "server",
"attributes": {
"id": 2,
"external_id": null,
"uuid": "5e7f0002-0000-4000-8000-000000000002",
"identifier": "5e7f0002",
"name": "Creative",
"description": "",
"status": "installing",
"suspended": false,
"limits": {
"memory": 1024,
"swap": 0,
"disk": 5120,
"io": 500,
"cpu": 0,
"threads": null,
"oom_disabled": false
},
"feature_limits": {
"databases": 0,
"allocations": null,
"backups": 0
},
"user": 2,
"node": 1,
"allocation": 3,
"egg": 2,
"container": {
"startup_command": "java -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_17",
"skip_scripts": true,
"installed": 0,
"environment": {
"SERVER_JARFILE": "child.jar",
"STARTUP": "java -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "us-east",
"P_SERVER_UUID": "5e7f0002-0000-4000-8000-000000000002",
"P_SERVER_ALLOCATION_LIMIT": null
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
}
]
}
}
}
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
}
]