Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for midpoint (0.16 sec)

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

    Для URL:
    
    ```
    https://example.com/items/foo
    ```
    
    ...путь выглядит так:
    
    ```
    /items/foo
    ```
    
    !!! info "Дополнительная иформация"
        Термин "path" также часто называется "endpoint" или "route".
    
    При создании API, "путь" является основным способом разделения "задач" и "ресурсов".
    
    #### Операция (operation)
    
    "Операция" это один из "методов" HTTP.
    
    Таких, как:
    
    * `POST`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/first-steps.md

    So, in a URL like:
    
    ```
    https://example.com/items/foo
    ```
    
    ...the path would be:
    
    ```
    /items/foo
    ```
    
    !!! info
        A "path" is also commonly called an "endpoint" or a "route".
    
    While building an API, the "path" is the main way to separate "concerns" and "resources".
    
    #### Operation
    
    "Operation" here refers to one of the HTTP "methods".
    
    One of:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. docs/en/docs/alternatives.md

    Routes are declared in a single place, using functions declared in other places (instead of using decorators that can be placed right on top of the function that handles the endpoint). This is closer to how Django does it than to how Flask (and Starlette) does it. It separates in the code things that are relatively tightly coupled.
    
    !!! check "Inspired **FastAPI** to"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/oauth2-jwt.md

    Create a variable `ALGORITHM` with the algorithm used to sign the JWT token and set it to `"HS256"`.
    
    Create a variable for the expiration of the token.
    
    Define a Pydantic Model that will be used in the token endpoint for the response.
    
    Create a utility function to generate a new access token.
    
    === "Python 3.10+"
    
        ```Python hl_lines="6  12-14  28-30  78-86"
        {!> ../../../docs_src/security/tutorial004_an_py310.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.custom_request_and_route.tutorial002 import app
    
    client = TestClient(app)
    
    
    def test_endpoint_works():
        response = client.post("/", json=[1, 2, 3])
        assert response.json() == 6
    
    
    def test_exception_handler_body_access():
        response = client.post("/", json={"numbers": [1, 2, 3]})
        assert response.json() == IsDict(
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/websockets.md

    Or you might have a native mobile application that communicates with your WebSocket backend directly, in native code.
    
    Or you might have any other way to communicate with the WebSocket endpoint.
    
    ---
    
    But for this example, we'll use a very simple HTML document with some JavaScript, all inside a long string.
    
    This, of course, is not optimal and you wouldn't use it for production.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/first-steps.md

    Então, em uma URL como:
    
    ```
    https://example.com/items/foo
    ```
    
    ...a rota seria:
    
    ```
    /items/foo
    ```
    
    !!! info "Informação"
        Uma "rota" também é comumente chamada de "endpoint".
    
    Ao construir uma API, a "rota" é a principal forma de separar "preocupações" e "recursos".
    
    #### Operação
    
    "Operação" aqui se refere a um dos "métodos" HTTP.
    
    Um dos:
    
    * `POST`
    * `GET`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/simple-oauth2.md

    ## Return the token
    
    The response of the `token` endpoint must be a JSON object.
    
    It should have a `token_type`. In our case, as we are using "Bearer" tokens, the token type should be "`bearer`".
    
    And it should have an `access_token`, with a string containing our access token.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  9. fastapi/openapi/utils.py

        if operation_id in operation_ids:
            message = (
                f"Duplicate Operation ID {operation_id} for function "
                + f"{route.endpoint.__name__}"
            )
            file_name = getattr(route.endpoint, "__globals__", {}).get("__file__")
            if file_name:
                message += f" at {file_name}"
            warnings.warn(message, stacklevel=1)
        operation_ids.add(operation_id)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  10. docs/pl/docs/tutorial/first-steps.md

    Więc, w adresie URL takim jak:
    
    ```
    https://example.com/items/foo
    ```
    
    ...ścieżką będzie:
    
    ```
    /items/foo
    ```
    
    !!! info
        "Ścieżka" jest zazwyczaj nazywana "path", "endpoint" lub "route'.
    
    Podczas budowania API, "ścieżka" jest głównym sposobem na oddzielenie "odpowiedzialności" i „zasobów”.
    
    #### Operacje
    
    "Operacje" tutaj odnoszą się do jednej z "metod" HTTP.
    
    Jedna z:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top