diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bde615..80c83cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ Find changes for the upcoming release in the project's [changelog.d directory](h + +## 2.0.1 (2024-05-07) + +### Bug fixes + +- Remove the unwanted query parameter from the `GET /fastapi-bootcamp/en-greeting` endpoint. + ## 2.0.0 (2024-05-07) diff --git a/src/fastapibootcamp/handlers/external.py b/src/fastapibootcamp/handlers/external.py index f917305..4b29871 100644 --- a/src/fastapibootcamp/handlers/external.py +++ b/src/fastapibootcamp/handlers/external.py @@ -154,11 +154,9 @@ class GreetingResponseModel(BaseModel): summary="Get a greeting in English.", response_model=GreetingResponseModel, ) -async def get_english_greeting( - language: Annotated[Language, Query()] = Language.en, -) -> GreetingResponseModel: +async def get_english_greeting() -> GreetingResponseModel: return GreetingResponseModel( - greeting="Hello, SQuaRE Services Bootcamp!", language=language + greeting="Hello, SQuaRE Services Bootcamp!", language=Language.en ) @@ -382,7 +380,7 @@ class ErrorRequestModel(BaseModel): "/error-demo", summary="Raise an internal service exception." ) async def post_error_demo(data: ErrorRequestModel) -> JSONResponse: - """Use the custom_error field to compare the different between raising + """Use the custom_error field to compare the difference between raising a custom SlackException and a generic exception. """ if data.custom_error: