нормальные названия методов в роутах сущностей

This commit is contained in:
HellsSenju 2024-10-22 20:55:30 +04:00
parent 97d0206339
commit 40e97696fd
3 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ router = APIRouter()
@router.post('/create')
async def test(data: ChExperimentDBExperimentDataBody):
async def create_ch_experimentdb_experiment_data(data: ChExperimentDBExperimentDataBody):
try:
await ChExperimentDBExperimentDataRepository.create_from_pydantic(data)
@ -16,7 +16,7 @@ async def test(data: ChExperimentDBExperimentDataBody):
@router.get('/all')
async def get_all():
async def get_all_ch_experimentdb_experiment_data():
try:
result = await ChExperimentDBExperimentDataRepository.get_all()

View File

@ -6,7 +6,7 @@ router = APIRouter()
@router.post('/create')
async def test(data: ExperimentDataBody):
async def create_experiment_data(data: ExperimentDataBody):
try:
await ExperimentDataRepository.create_from_pydantic(data)
@ -16,7 +16,7 @@ async def test(data: ExperimentDataBody):
@router.get('/all')
async def get_all():
async def get_all_experiment_data():
try:
result = await ExperimentDataRepository.get_all()

View File

@ -6,7 +6,7 @@ router = APIRouter()
@router.post('/create')
async def test(data: LoadParametersBody):
async def create_load_parameters(data: LoadParametersBody):
try:
await LoadParametersRepository.create_from_pydantic(data)
@ -16,7 +16,7 @@ async def test(data: LoadParametersBody):
@router.get('/all')
async def get_all():
async def get_all_load_parameters():
try:
result = await LoadParametersRepository.get_all()