Skip to content

Commit

Permalink
feat: docs tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sspzoa committed Oct 1, 2024
1 parent 5fa3ce0 commit 415a523
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/routes/cooking_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class ErrorResponse(BaseModel):
error: str

@router.post("/cooking_step", response_model=CookingStepResponse, responses={400: {"model": ErrorResponse}, 404: {"model": ErrorResponse}})
@router.post("/cooking_step", tags=["Recipe"], response_model=CookingStepResponse, responses={400: {"model": ErrorResponse}, 404: {"model": ErrorResponse}})
async def get_cooking_step_info(request: CookingStepRequest):
"""
레시피의 특정 조리 단계에 대한 상세 정보를 생성합니다.
Expand Down
2 changes: 1 addition & 1 deletion app/routes/ingredient.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class ErrorResponse(BaseModel):
error: str

@router.post("/ingredient", response_model=IngredientResponse, responses={400: {"model": ErrorResponse}})
@router.post("/ingredient", tags=["Recipe"], response_model=IngredientResponse, responses={400: {"model": ErrorResponse}})
async def get_ingredient_info(request: IngredientRequest):
"""
식재료 정보와 이미지를 생성합니다.
Expand Down
4 changes: 2 additions & 2 deletions app/routes/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ErrorResponse(BaseModel):
error: str

@router.post("/recipe", response_model=RecipeResponse, responses={400: {"model": ErrorResponse}})
@router.post("/recipe", tags=["Recipe"], response_model=RecipeResponse, responses={400: {"model": ErrorResponse}})
async def get_recipe(request: RecipeRequest):
"""
주어진 음식 이름에 대한 레시피를 생성합니다.
Expand Down Expand Up @@ -107,7 +107,7 @@ async def get_recipe(request: RecipeRequest):
except Exception as e:
raise HTTPException(status_code=400, detail=str(e))

@router.get("/recipe/{recipe_id}", response_model=RecipeResponse, responses={404: {"model": ErrorResponse}})
@router.get("/recipe/{recipe_id}", tags=["Recipe"], response_model=RecipeResponse, responses={404: {"model": ErrorResponse}})
async def get_recipe_by_id(recipe_id: str):
"""
주어진 ID에 대한 레시피를 반환합니다.
Expand Down

0 comments on commit 415a523

Please sign in to comment.