31 lines
549 B
Python
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
|