Revisions for ⁨Retour API-Platform⁩

View the changes made to this paste.

unlisted ⁨3⁩ ⁨files⁩ 2021-06-06 19:54:21 UTC

/api/player_ranks/ebf32785-e1de-4cf3-b985-1e1a1cafaad6

@@ -0,0 +1,11 @@

+{
+  "@context": "/api/contexts/PlayerRank",
+  "@id": "/api/player_ranks/ebf32785-e1de-4cf3-b985-1e1a1cafaad6",
+  "@type": "PlayerRank",
+  "id": "ebf32785-e1de-4cf3-b985-1e1a1cafaad6",
+  "player": "/api/players/9cee8464-c12c-49b8-8a95-83de9093a3f2",
+  "rank": "/api/ranks/5f8b5c44-4177-4ecd-ab58-5b41640afafa",
+  "startedAt": "2018-11-25T00:00:00+00:00",
+  "active": true,
+  "grantedAt": "2021-05-29T15:36:20+00:00"
+}
\ No newline at end of file

/api/players

@@ -0,0 +1,53 @@

+{
+  "@context": "/api/contexts/Player",
+  "@id": "/api/players",
+  "@type": "hydra:Collection",
+  "hydra:member": [
+    {
+      "@id": "/api/players/9cee8464-c12c-49b8-8a95-83de9093a3f2",
+      "@type": "Player",
+      "id": "9cee8464-c12c-49b8-8a95-83de9093a3f2",
+      "username": "jewome62",
+      "minecraftUuid": "7c7a0cb7-9b76-4e7e-a433-dd0b5caa1ead",
+      "playerRanks": [
+        "/api/player_ranks/ebf32785-e1de-4cf3-b985-1e1a1cafaad6"
+      ],
+      "stats": "/api/player_stats/70fc9713-af30-4c69-b83a-9a55997c7555",
+      "absences": [],
+      "sessions": [],
+      "rankEvolutions": [],
+      "sanctions": [],
+      "user": "/api/users/dcc65053-30eb-4c1f-be30-56a9a6667f42"
+    }
+  ],
+  "hydra:totalItems": 1,
+  "hydra:view": {
+    "@id": "/api/players?username=jewome62",
+    "@type": "hydra:PartialCollectionView"
+  },
+  "hydra:search": {
+    "@type": "hydra:IriTemplate",
+    "hydra:template": "/api/players{?username,minecraftUuid,minecraftUuid[]}",
+    "hydra:variableRepresentation": "BasicRepresentation",
+    "hydra:mapping": [
+      {
+        "@type": "IriTemplateMapping",
+        "variable": "username",
+        "property": "username",
+        "required": false
+      },
+      {
+        "@type": "IriTemplateMapping",
+        "variable": "minecraftUuid",
+        "property": "minecraftUuid",
+        "required": false
+      },
+      {
+        "@type": "IriTemplateMapping",
+        "variable": "minecraftUuid[]",
+        "property": "minecraftUuid",
+        "required": false
+      }
+    ]
+  }
+}
\ No newline at end of file

/api/ranks/5f8b5c44-4177-4ecd-ab58-5b41640afafa

@@ -0,0 +1,18 @@

+{
+  "@context": "/api/contexts/Rank",
+  "@id": "/api/ranks/5f8b5c44-4177-4ecd-ab58-5b41640afafa",
+  "@type": "Rank",
+  "id": "5f8b5c44-4177-4ecd-ab58-5b41640afafa",
+  "name": "Administrateur",
+  "internalName": "admin",
+  "type": 5,
+  "priority": 0,
+  "color": "AA0000",
+  "discordGroupId": "175945795596451850",
+  "playerRanks": [
+    "/api/player_ranks/68d3bd2b-d473-4e17-9668-6655c796658b",
+    "/api/player_ranks/ebf32785-e1de-4cf3-b985-1e1a1cafaad6",
+    "/api/player_ranks/65f4e817-3bf3-4755-8252-d55236034082"
+  ],
+  "roles": []
+}
\ No newline at end of file