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):