mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-25 12:11:04 +00:00
feat: info endpoint (#71)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
23
api/models/info.py
Normal file
23
api/models/info.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from api.models.donations import DonationFields
|
||||
from api.models.socials import SocialFields
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class InfoFields(BaseModel):
|
||||
"""
|
||||
Implements the fields for a API owner info.
|
||||
"""
|
||||
|
||||
name: str
|
||||
about: str
|
||||
contact: dict[str, str]
|
||||
socials: SocialFields
|
||||
donations: DonationFields
|
||||
|
||||
|
||||
class InfoResponseModel(BaseModel):
|
||||
"""
|
||||
A Pydantic BaseModel that represents a dictionary of info.
|
||||
"""
|
||||
|
||||
info: InfoFields
|
||||
Reference in New Issue
Block a user