Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for shortcuts (0.05 seconds)

  1. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Shortcut { #shortcut }
    
    But you see that we are having some code repetition here, writing `CommonQueryParams` twice:
    
    //// tab | Python 3.9+
    
    ```Python
    commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)]
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/response-status-code.md

    ///
    
    ## Shortcut to remember the names { #shortcut-to-remember-the-names }
    
    Let's see the previous example again:
    
    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` is the status code for "Created".
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4K bytes
    - Click Count (0)
  3. fastapi/openapi/docs.py

            current_swagger_ui_parameters.update(swagger_ui_parameters)
    
        html = f"""
        <!DOCTYPE html>
        <html>
        <head>
        <link type="text/css" rel="stylesheet" href="{swagger_css_url}">
        <link rel="shortcut icon" href="{swagger_favicon_url}">
        <title>{title}</title>
        </head>
        <body>
        <div id="swagger-ui">
        </div>
        <script src="{swagger_js_url}"></script>
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/path-operation-configuration.md

    You can define the (HTTP) `status_code` to be used in the response of your *path operation*.
    
    You can pass directly the `int` code, like `404`.
    
    But if you don't remember what each number code is for, you can use the shortcut constants in `status`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    That status code will be used in the response and will be added to the OpenAPI schema.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/response-status-code.md

    ///
    
    ## Atajo para recordar los nombres { #shortcut-to-remember-the-names }
    
    Veamos de nuevo el ejemplo anterior:
    
    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` es el código de estado para "Created".
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/response-status-code.md

    ///
    
    ## Abkürzung zur Erinnerung an die Namen { #shortcut-to-remember-the-names }
    
    Lassen Sie uns das vorherige Beispiel noch einmal anschauen:
    
    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` ist der Statuscode für „Created“ („Erzeugt“).
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  7. docs/ru/docs/tutorial/response-status-code.md

    ///
    
    ## Краткие обозначения для запоминания названий кодов { #shortcut-to-remember-the-names }
    
    Рассмотрим предыдущий пример еще раз:
    
    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` – это код статуса "Создано".
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  8. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Abkürzung { #shortcut }
    
    Aber Sie sehen, dass wir hier etwas Codeduplizierung haben, indem wir `CommonQueryParams` zweimal schreiben:
    
    //// tab | Python 3.9+
    
    ```Python
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  9. docs/pt/docs/tutorial/response-status-code.md

    ///
    
    ## Atalho para lembrar os nomes { #shortcut-to-remember-the-names }
    
    Vamos ver o exemplo anterior novamente:
    
    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` é o código de status para "Criado".
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Сокращение { #shortcut }
    
    Но вы видите, что здесь мы имеем некоторое повторение кода, дважды написав `CommonQueryParams`:
    
    //// tab | Python 3.9+
    
    ```Python
    commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)]
    ```
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.7K bytes
    - Click Count (0)
Back to Top