Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌐 Add Korean translation for docs/ko/docs/tutorial/cookie-params.md #2545

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/ko/docs/tutorial/cookie-params.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 쿠키 매개변수

`Query` 및 `Path` 매개변수를 정의한 방법과 동일하게 쿠키 매개변수를 정의할 수 있습니다.

## `Cookie` 임포트

먼저 `Cookie`를 임포트합니다:

```Python hl_lines="3"
{!../../../docs_src/cookie_params/tutorial001.py!}
```

## `Cookie` 매개변수 선언

이제 `Path` 및 `Query`를 사용한 동일한 구조를 이용하여 쿠키 매개변수를 선언합니다.

첫 번째 값은 기본값이며, 추가 검증이나 어노테이션 매개변수 모두 전달할 수 있습니다:

```Python hl_lines="9"
{!../../../docs_src/cookie_params/tutorial001.py!}
```

!!! note "기술 세부사항"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!!! note "기술 세부사항"
!!! note "기술적 세부사항"

Check 파이썬 공식 한국어 문서에 없는 용어 중 현재 사용하고 있는 용어

`Cookie`는 `Path` 및 `Query`의 "자매" 클래스입니다. 이 역시 동일한 공통 `Param` 클래스를 상속합니다.

`Query`, `Path`, `Cookie` 그리고 다른 것들을 `fastapi`에서 임포트 할 때, 이들은 실제로 특별한 클래스를 반환하는 함수임을 기억하세요.

!!! info "정보"
쿠키를 선언하기 위해서 `Cookie`를 사용해야 합니다. 그렇지 않으면 해당 매개변수를 쿼리 매개변수로 해석하기 때문입니다.

## 요약

`Cookie`를 `Query` 및 `Path`와 동일한 공통 패턴을 사용하여 선언합니다.