more stuff for docs
This commit is contained in:
parent
2dd8d4de50
commit
b9f0639934
@ -4,6 +4,7 @@ import importlib
|
|||||||
import urllib.parse
|
import urllib.parse
|
||||||
import regex
|
import regex
|
||||||
import logging
|
import logging
|
||||||
|
import json
|
||||||
|
|
||||||
from typing import Any, Annotated
|
from typing import Any, Annotated
|
||||||
from fastapi import FastAPI, Form, HTTPException
|
from fastapi import FastAPI, Form, HTTPException
|
||||||
@ -27,6 +28,16 @@ class ValidLyricRequest(BaseModel):
|
|||||||
extra: bool | None = False
|
extra: bool | None = False
|
||||||
src: str
|
src: str
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
schema_extra = {
|
||||||
|
"example": {
|
||||||
|
"a": "eminem",
|
||||||
|
"s": "rap god",
|
||||||
|
"src": "WEB",
|
||||||
|
"extra": True
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class LyricSearch(FastAPI):
|
class LyricSearch(FastAPI):
|
||||||
def __init__(self, app: FastAPI, util, constants):
|
def __init__(self, app: FastAPI, util, constants):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user