From 5334831c80bdd61fdaf959b2bdbd2b43e2e52c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Coze?= <96086580+SebastienCozeDev@users.noreply.github.com> Date: Tue, 3 Mar 2026 15:19:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Replace=20the=20API=20descriptio?= =?UTF-8?q?n=20by=20the=20README.md=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index b7d0ef0..6425ce4 100644 --- a/main.py +++ b/main.py @@ -24,10 +24,16 @@ }, ] +with open("README.md", "r", encoding="utf-8") as f: + readme_content = f.read() + lines = readme_content.split('\n') + roadmap_index = next((i for i, line in enumerate(lines) if "🎯 Roadmap" in line), 0) + readme_content = '\n'.join(lines[roadmap_index:]) + app = FastAPI( - title="RAGE Data API", - description="An API to access RAGE data such as blip models, colors, markers, ped models, and weapons.", - summary="An API for RAGE data retrieval.", + title="⚙️ RAGE Data API", + summary="RAGE Data API allows you to retrieve useful information from video games using the RAGE game engine. This information helps, in particular, mod developers to simplify their research.", + description=readme_content, version="0.1.1", openapi_tags=tags_metadata, docs_url="/",