Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🌐 Add French translation fordocs/fr/docs/advanced/response-directly.md#9415

Merged
tiangolo merged 7 commits intofastapi:masterfrom
axel584:translation-fr-advanced-response-directly
Apr 25, 2023
Merged

🌐 Add French translation fordocs/fr/docs/advanced/response-directly.md#9415
tiangolo merged 7 commits intofastapi:masterfrom
axel584:translation-fr-advanced-response-directly

Conversation

@axel584
Copy link
Contributor

Dear translators,
A small translation of an advanced page in 🇫🇷

Thank you,

Axel

@github-actions
Copy link
Contributor

📝 Docs preview for commitf30d4d6 at:https://644103a1277c697381cad829--fastapi.netlify.app

@axel584axel584force-pushed thetranslation-fr-advanced-response-directly branch fromf30d4d6 to1fc0689CompareApril 20, 2023 20:59

## Utiliser le `jsonable_encoder` dans une `Response`

Parce que **FastAPI** n'apporte aucune modification à une `Response` que vous retournez, vous devez vous assurer que son contenu est prêt à être utilisé.
Copy link
Contributor

Choose a reason for hiding this comment

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

prêt à être utilisé (serializable).

Copy link
Contributor

Choose a reason for hiding this comment

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

(sérialisable).

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I correct this, if it's ok for you, please, close the comment. Thanks.

Copy link
Contributor

@cfrabouletcfraboulet left a comment

Choose a reason for hiding this comment

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

Hi@axel584 😊

Some comments about your PR!

Moreover, I don't know why but the CI does not pass.

@@ -1,63 +1,63 @@
#Return a Response Directly
#Retourner une réponse directement

This comment was marked as resolved.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I correct this, if it's ok for you, please, close the comment. Thanks.

Par défaut, **FastAPI**convertirait automatiquement cette valeur de retour en JSONen utilisant le`jsonable_encoder`expliqué dans [JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}.

Then, behind the scenes, it would put thatJSON-compatible data (e.g. a`dict`)inside of a `JSONResponse`that would be used to send the response to the client.
Ensuite, dans les coulisses, il mettra ces données compatiblesJSON (par exemple un`dict`)à l'intérieur d'un `JSONResponse`qui sera utilisé pour envoyer la réponse au client.

This comment was marked as resolved.

This comment was marked as resolved.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I correct this, if it's ok for you, please, close the comment. Thanks.

{!../../../docs_src/response_directly/tutorial001.py!}
``Python hl_lines="6-7 21-22"
{!../../../docs_src/response_directly/tutorial001.py!}
```

This comment was marked as resolved.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I correct this, if it's ok for you, please, close the comment. Thanks.

{!../../../docs_src/response_directly/tutorial002.py!}
``Python hl_lines="1 18"
{!../../../docs_src/response_directly/tutorial002.py!}
```

This comment was marked as resolved.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I correct this, if it's ok for you, please, close the comment. Thanks.

@github-actions
Copy link
Contributor

📝 Docs preview for commit01e3662 at:https://64451ab615a2691be88798be--fastapi.netlify.app

Copy link
Contributor

@cfrabouletcfraboulet left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻
Well done@axel584 🚀 😊

@tiangolotiangolo changed the titleTranslation fr advanced response directly🌐 Add French translation fordocs/fr/docs/advanced/response-directly.mdApr 25, 2023
@tiangolotiangolo added lang-allTranslations approved-2 lang-frFrench translations labelsApr 25, 2023
@github-actions
Copy link
Contributor

📝 Docs preview for commit1ccb2e0 at:https://64481e27deb85404054cd231--fastapi.netlify.app

@tiangolo
Copy link
Member

Thank you@axel584! 🚀

And thanks for the reviews@raphaelauv,@emmrichard,@Frabc 🍰

@tiangolotiangolo merged commiteb1b858 intofastapi:masterApr 25, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

3 more reviewers

@raphaelauvraphaelauvraphaelauv left review comments

@emmrichardemmrichardemmrichard approved these changes

@cfrabouletcfrabouletcfraboulet approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

approved-2lang-allTranslationslang-frFrench translations

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@axel584@tiangolo@emmrichard@raphaelauv@cfraboulet

Comments


[8]ページ先頭

©2009-2026 Movatter.jp