From b9f063993400e811bd1774d9d7c4309e3619e277 Mon Sep 17 00:00:00 2001 From: codey Date: Sun, 11 Aug 2024 09:50:41 -0400 Subject: [PATCH] more stuff for docs --- endpoints/LyricSearch.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/endpoints/LyricSearch.py b/endpoints/LyricSearch.py index 0ecb59b..6771b29 100644 --- a/endpoints/LyricSearch.py +++ b/endpoints/LyricSearch.py @@ -4,6 +4,7 @@ import importlib import urllib.parse import regex import logging +import json from typing import Any, Annotated from fastapi import FastAPI, Form, HTTPException @@ -27,6 +28,16 @@ class ValidLyricRequest(BaseModel): extra: bool | None = False src: str + class Config: + schema_extra = { + "example": { + "a": "eminem", + "s": "rap god", + "src": "WEB", + "extra": True + } + } + class LyricSearch(FastAPI): def __init__(self, app: FastAPI, util, constants):