Update code in endpoints/endpoint.get.py
This commit is contained in:
parent
90266ff39c
commit
8094e6fd16
@ -0,0 +1,20 @@
|
|||||||
|
from fastapi import APIRouter, status
|
||||||
|
from typing import Dict
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.get("/endpoint", status_code=status.HTTP_200_OK, response_model=Dict[str, str])
|
||||||
|
async def get_dave_translations():
|
||||||
|
translations = {
|
||||||
|
"english": "Dave",
|
||||||
|
"spanish": "David",
|
||||||
|
"french": "David",
|
||||||
|
"german": "David",
|
||||||
|
"italian": "Davide",
|
||||||
|
"portuguese": "Davi",
|
||||||
|
"russian": "Давид",
|
||||||
|
"japanese": "デイビッド",
|
||||||
|
"chinese": "戴夫",
|
||||||
|
"korean": "데이비드"
|
||||||
|
}
|
||||||
|
return translations
|
Loading…
x
Reference in New Issue
Block a user