more stuff for docs
This commit is contained in:
parent
2dd8d4de50
commit
b9f0639934
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user