нормальные названия методов в роутах сущностей
This commit is contained in:
parent
97d0206339
commit
40e97696fd
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user