Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Gun (0.02 sec)

  1. docs/ru/docs/tutorial/request-form-models.md

    Если клиент попробует отправить дополнительные данные, то в ответ он получит **ошибку**.
    
    Например, если клиент попытается отправить поля формы:
    
    * `username`: `Rick`
    * `password`: `Portal Gun`
    * `extra`: `Mr. Poopybutthole`
    
    То в ответ он получит **ошибку**, сообщающую ему, что поле `extra` не разрешено:
    
    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri May 30 13:17:36 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/request-form-models.md

    If a client tries to send some extra data, they will receive an **error** response.
    
    For example, if the client tries to send the form fields:
    
    * `username`: `Rick`
    * `password`: `Portal Gun`
    * `extra`: `Mr. Poopybutthole`
    
    They will receive an error response telling them that the field `extra` is not allowed:
    
    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. docs/en/docs/release-notes.md

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    data = {
        "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
        "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top