Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for paths (0.14 sec)

  1. tests/test_tutorial/test_extra_data_types/test_tutorial001.py

        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/{item_id}": {
                    "put": {
                        "responses": {
                            "200": {
                                "description": "Successful Response",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 00:11:40 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/behind-a-proxy.md

    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    If you use Hypercorn, it also has the option `--root-path`.
    
    !!! note "Technical Details"
        The ASGI specification defines a `root_path` for this use case.
    
        And the `--root-path` command line option provides that `root_path`.
    
    ### Checking the current `root_path`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  3. docs/en/docs/tutorial/first-steps.md

    ### Step 3: create a *path operation*
    
    #### Path
    
    "Path" here refers to the last part of the URL starting from the first `/`.
    
    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".
    
    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)
  4. tests/test_tutorial/test_extra_data_types/test_tutorial001_an_py310.py

        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/{item_id}": {
                    "put": {
                        "responses": {
                            "200": {
                                "description": "Successful Response",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 00:11:40 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. docs/es/docs/index.md

    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    Ya creaste una API que:
    
    * Recibe HTTP requests en los _paths_ `/` y `/items/{item_id}`.
    * Ambos _paths_ toman operaciones `GET` (también conocido como HTTP _methods_).
    * El _path_ `/items/{item_id}` tiene un _path parameter_ `item_id` que debería ser un `int`.
    * El _path_ `/items/{item_id}` tiene un `str` _query parameter_ `q` opcional.
    
    ### Documentación interactiva de APIs
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/cookie-params.md

        ```Python hl_lines="9"
        {!> ../../../docs_src/cookie_params/tutorial001.py!}
        ```
    
    !!! note "Detalles Técnicos"
        `Cookie` es una clase "hermana" de `Path` y `Query`. También hereda de la misma clase común `Param`.
    
        Pero recuerda que cuando importas `Query`, `Path`, `Cookie`  y otros de `fastapi`, en realidad son funciones que devuelven clases especiales.
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 19:30:26 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. .github/workflows/publish.yml

            uses: actions/setup-python@v5
            with:
              python-version: "3.10"
              # Issue ref: https://github.com/actions/setup-python/issues/436
              # cache: "pip"
              # cache-dependency-path: pyproject.toml
          - name: Install build dependencies
            run: pip install build
          - name: Build distribution
            env:
              TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }}
            run: python -m build
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1K bytes
    - Viewed (0)
  8. docs/en/docs/deployment/manually.md

    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> run <u style="text-decoration-style:single">main.py</u>
    <font color="#3465A4">INFO    </font> Using path <font color="#3465A4">main.py</font>
    <font color="#3465A4">INFO    </font> Resolved absolute path <font color="#75507B">/home/user/code/awesomeapp/</font><font color="#AD7FA8">main.py</font>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  9. docs/yo/docs/index.md

    * Gbà àwọn ìbéèrè HTTP ni àwọn _ipa ọ̀nà_ `/` àti `/items/{item_id}`.
    * Èyí tí àwọn _ipa ọ̀nà_ (i.e. _paths_) méjèèjì gbà àwọn iṣẹ `GET` (a tun mọ si _àwọn ọna_ HTTP).
    * Èyí tí _ipa ọ̀nà_  (i.e. _paths_) `/items/{item_id}` ní _àwọn ohun-ini ipa ọ̀nà_ tí ó yẹ kí ó jẹ́ `int` i.e. `ÒǸKÀ`.
    * Èyí tí _ipa ọ̀nà_  (i.e. _paths_) `/items/{item_id}` ní àṣàyàn `str` _àwọn ohun-ini_ (i.e. _query parameter_) `q`.
    
    ### Ìbáṣepọ̀ àkọsílẹ̀ API
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  10. docs/en/docs/release-notes.md

    * Fix support for *paths* in *path parameters* without needing explicit `Path(...)`.
        * PR [#256](https://github.com/tiangolo/fastapi/pull/256).
        * Documented in PR [#272](https://github.com/tiangolo/fastapi/pull/272) by [@wshayes](https://github.com/wshayes).
        * New documentation at: [Path Parameters containing paths](https://fastapi.tiangolo.com/tutorial/path-params/#path-parameters-containing-paths).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
Back to top