Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for dekoratora (0.11 sec)

  1. docs/pl/docs/tutorial/first-steps.md

    Umieszczasz to na szczycie funkcji. Jak ładną ozdobną czapkę (chyba stąd wzięła się nazwa).
    
    "Dekorator" przyjmuje funkcję znajdującą się poniżej jego i coś z nią robi.
    
    W naszym przypadku dekorator mówi **FastAPI**, że poniższa funkcja odpowiada **ścieżce** `/` z **operacją** `get`.
    
    Jest to "**dekorator operacji na ścieżce**".
    
    ///
    
    Możesz również użyć innej operacji:
    
    * `@app.post()`
    * `@app.put()`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:51:30 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/first-steps.md

    You put it on top of a function. Like a pretty decorative hat (I guess that's where the term came from).
    
    A "decorator" takes the function below and does something with it.
    
    In our case, this decorator tells **FastAPI** that the function below corresponds to the **path** `/` with an **operation** `get`.
    
    It is the "**path operation decorator**".
    
    ///
    
    You can also use the other operations:
    
    * `@app.post()`
    * `@app.put()`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:48:16 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/security/oauth2-scopes.md

    **FastAPI** includes utilities for all these OAuth2 authentication flows in `fastapi.security.oauth2`.
    
    ## `Security` in decorator `dependencies`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:02:16 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/response-status-code.md

    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * usw.
    
    {* ../../docs_src/response_status_code/tutorial001.py hl[6] *}
    
    /// note | "Hinweis"
    
    Beachten Sie, dass `status_code` ein Parameter der „Dekorator“-Methode ist (`get`, `post`, usw.). Nicht der *Pfadoperation-Funktion*, so wie die anderen Parameter und der Body.
    
    ///
    
    Dem `status_code`-Parameter wird eine Zahl mit dem HTTP-Statuscode übergeben.
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:59:43 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/response-status-code.md

    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * etc.
    
    {* ../../docs_src/response_status_code/tutorial001.py hl[6] *}
    
    /// note
    
    Notice that `status_code` is a parameter of the "decorator" method (`get`, `post`, etc). Not of your *path operation function*, like all the parameters and body.
    
    ///
    
    The `status_code` parameter receives a number with the HTTP status code.
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:13:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/additional-responses.md

    But for those additional responses you have to make sure you return a `Response` like `JSONResponse` directly, with your status code and content.
    
    ## Additional Response with `model`
    
    You can pass to your *path operation decorators* a parameter `responses`.
    
    It receives a `dict`: the keys are status codes for each response (like `200`), and the values are other `dict`s with the information for each of them.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:07:07 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. docs/en/mkdocs.yml

          - tutorial/dependencies/index.md
          - tutorial/dependencies/classes-as-dependencies.md
          - tutorial/dependencies/sub-dependencies.md
          - tutorial/dependencies/dependencies-in-path-operation-decorators.md
          - tutorial/dependencies/global-dependencies.md
          - tutorial/dependencies/dependencies-with-yield.md
        - Security:
          - tutorial/security/index.md
          - tutorial/security/first-steps.md
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:28:02 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/index.md

    That's it.
    
    **2 lines**.
    
    And it has the same shape and structure that all your *path operation functions* have.
    
    You can think of it as a *path operation function* without the "decorator" (without the `@app.get("/some-path")`).
    
    And it can return anything you want.
    
    In this case, this dependency expects:
    
    * An optional query parameter `q` that is a `str`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:18:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. docs/en/docs/python-types.md

    The important thing is that by using standard Python types, in a single place (instead of adding more classes, decorators, etc), **FastAPI** will do a lot of the work for you.
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:47:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/RepositorySystemSupplier.java

    import org.eclipse.aether.named.providers.NoopNamedLockFactory;
    import org.eclipse.aether.spi.artifact.ArtifactPredicateFactory;
    import org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory;
    import org.eclipse.aether.spi.artifact.generator.ArtifactGeneratorFactory;
    import org.eclipse.aether.spi.checksums.ProvidedChecksumsSource;
    import org.eclipse.aether.spi.checksums.TrustedChecksumsSource;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 45.6K bytes
    - Viewed (0)
Back to top