From a13c8ad8f66222528c5ab58017f929dbc647ad51 Mon Sep 17 00:00:00 2001 From: zino Date: Mon, 30 Jan 2023 13:13:53 +0100 Subject: [PATCH] Update 'README.md' --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 1b7d68a..15ec660 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,46 @@ _An automatically generated and interactive API documentation with (live) respon - Sort: `name` | `projectUrl` - Example: `/api/v1/mods?include=revisions.executable&sort[projectUrl]` +
+Example response +

+```json +{ + "data": [ + { + "id": 427, + "name": "10 YEARS OF MINECRAFT MAP", + "mindRam": 2048, + "projectUrl": "https://www.minecraft.net" + }, + { + "id": 428, + "name": "Technic - The 1.7.10 Pack", + "mindRam": 4096, + "projectUrl": "https://www.technicpack.net/modpack/the-1710-pack.453902" + } + ] +} +``` +

+
+ **/api/v1/mods/{id}**: Get mod by id - Include: `revisions` | `revisions.executable` - Sort: `name` | `projectUrl` - Example: `/api/v1/mods/1337?include=revisions.executable&sort[projectUrl]` +```json +{ + "data": { + "id": 426, + "name": "Minecraft Vanilla", + "mindRam": 2048, + "projectUrl": "https://www.minecraft.net" + } +} +``` +
##### Revisions