Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
🌐 Add French translation fordocs/fr/docs/advanced/response-directly.md#9415
Conversation
📝 Docs preview for commitf30d4d6 at:https://644103a1277c697381cad829--fastapi.netlify.app |
f30d4d6 to1fc0689Compare| ## 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é. |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
(sérialisable).
There was a problem hiding this comment.
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.
cfraboulet left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| @@ -1,63 +1,63 @@ | |||
| #Return a Response Directly | |||
| #Retourner une réponse directement | |||
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
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.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
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.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
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 preview for commit01e3662 at:https://64451ab615a2691be88798be--fastapi.netlify.app |
cfraboulet left a comment
There was a problem hiding this 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 🚀 😊
docs/fr/docs/advanced/response-directly.md📝 Docs preview for commit1ccb2e0 at:https://64481e27deb85404054cd231--fastapi.netlify.app |
tiangolo commentedApr 25, 2023
Thank you@axel584! 🚀 And thanks for the reviews@raphaelauv,@emmrichard,@Frabc 🍰 |
Dear translators,
A small translation of an advanced page in 🇫🇷
Thank you,
Axel