jde-server/core/handlers/profile/handlers.py

31 lines
549 B
Python

from fastapi import APIRouter, Path
router = APIRouter(prefix='/profiles')
# todo implement this handlers in services and storages. Then use fastapi.Depends()
@router.post('/')
async def create_profile():
pass
@router.get('/')
async def list_profiles():
pass
@router.get('/{profile_id}')
async def get_profile(profile_id: int = Path()):
pass
@router.delete('/{profile_id}')
async def delete_profile(profile_id: int = Path()):
pass
@router.put('/{profile_id}')
async def update_profile(profile_id: int = Path()):
pass