Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 192 for rica (0.02 seconds)

  1. docs/uk/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query(default="rick")] = "morty"
    ```
    
    ...тому, що не зрозуміло, яке значення має бути значенням за замовчуванням: `"rick"` чи `"morty"`.
    
    Тож ви будете використовувати (бажано):
    
    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...або у старих кодових базах ви знайдете:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 25.9K bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial008d_py310.py

    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("We don't swallow the internal error here, we raise again 😎")
            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 694 bytes
    - Click Count (0)
  3. docs_src/path_operation_configuration/tutorial002b_py310.py

        users = "users"
    
    
    @app.get("/items/", tags=[Tags.items])
    async def get_items():
        return ["Portal gun", "Plumbus"]
    
    
    @app.get("/users/", tags=[Tags.users])
    async def read_users():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 323 bytes
    - Click Count (0)
  4. docs_src/dependencies/tutorial008d_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("We don't swallow the internal error here, we raise again 😎")
            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 734 bytes
    - Click Count (0)
  5. docs_src/dependencies/tutorial012_an_py310.py

    
    @app.get("/items/")
    async def read_items():
        return [{"item": "Portal Gun"}, {"item": "Plumbus"}]
    
    
    @app.get("/users/")
    async def read_users():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 746 bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/security/index.md

    Não é muito popular ou usado nos dias atuais.
    
    OAuth2 não especifica como criptografar a comunicação, ele espera que você tenha sua aplicação em um servidor HTTPS.
    
    /// tip | Dica
    
    Na seção sobre **deployment** você irá ver como configurar HTTPS de modo gratuito, usando Traefik e Let’s Encrypt.
    
    ///
    
    ## OpenID Connect { #openid-connect }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:48:53 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. docs/pt/docs/advanced/security/index.md

    ## Funcionalidades Adicionais { #additional-features }
    
    Existem algumas funcionalidades adicionais para lidar com segurança além das cobertas em [Tutorial - Guia de Usuário: Segurança](../../tutorial/security/index.md).
    
    /// tip | Dica
    
    As próximas seções **não são necessariamente "avançadas"**.
    
    E é possível que para o seu caso de uso, a solução está em uma delas.
    
    ///
    
    ## Leia o Tutorial primeiro { #read-the-tutorial-first }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 728 bytes
    - Click Count (0)
  8. docs/pt/docs/deployment/versions.md

    /// tip | Dica
    
    O "PATCH" é o último número, por exemplo, em `0.2.3`, a versão PATCH é `3`.
    
    ///
    
    Logo, você deveria conseguir fixar a versão, como:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    Mudanças significativas e novas funcionalidades são adicionadas em versões "MINOR".
    
    /// tip | Dica
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  9. docs/pt/docs/tutorial/security/simple-oauth2.md

    /// tip | Dica
    
    No próximo capítulo, você verá uma implementação realmente segura, com hash de senha e tokens <abbr title="JSON Web Tokens">JWT</abbr>.
    
    Mas, por enquanto, vamos nos concentrar nos detalhes específicos de que precisamos.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip | Dica
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  10. docs_src/separate_openapi_schemas/tutorial001_py310.py

        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 451 bytes
    - Click Count (0)
Back to Top