Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,929 for FastAPI (0.08 sec)

  1. docs/fr/docs/advanced/index.md

    pour débutants avancés pour compléter cette section de la documentation, vous pouvez consulter : <a href="https://testdrive.io/courses/tdd-fastapi/" class="external- link" target="_blank">Développement piloté par les tests avec FastAPI et Docker</a> par **TestDriven.io**.
    
    10 % de tous les bénéfices de ce cours sont reversés au développement de **FastAPI**. 🎉 😄...
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/dataclasses.md

    6. 这行代码返回的是包含 `items` 的字典,`items` 是数据类列表;
    
        FastAPI 仍能把数据<abbr title="把数据转换为可以传输的格式">序列化</abbr>为 JSON;
    
    7. 这行代码中,`response_model` 的类型注解是 `Author` 数据类列表;
    
        再一次,可以把 `dataclasses` 与标准类型注解一起使用;
    
    8. 注意,*路径操作函数*使用的是普通函数,不是异步函数;
    
        与往常一样,在 FastAPI 中,可以按需组合普通函数与异步函数;
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. fastapi/openapi/docs.py

        for example the URLs to use to load Swagger UI's JavaScript and CSS.
    
        Read more about it in the
        [FastAPI docs for Configure Swagger UI](https://fastapi.tiangolo.com/how-to/configure-swagger-ui/)
        and the [FastAPI docs for Custom Docs UI Static Assets (Self-Hosting)](https://fastapi.tiangolo.com/how-to/custom-docs-ui-assets/).
        """
        current_swagger_ui_parameters = swagger_ui_default_parameters.copy()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. docs/en/mkdocs.yml

      - search.share
      - search.suggest
      - toc.follow
    
      icon:
        repo: fontawesome/brands/github-alt
      logo: img/icon-white.svg
      favicon: img/favicon.png
      language: en
    repo_name: fastapi/fastapi
    repo_url: https://github.com/fastapi/fastapi
    plugins:
      # Material for MkDocs
      search:
      # Configured in mkdocs.insiders.yml
      # social:
      # Other plugins
      macros:
        include_yaml:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:28:02 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/using-request-directly.md

    并从以下对象中提取数据:
    
    * 路径参数
    * 请求头
    * Cookies
    * 等
    
    **FastAPI** 使用这种方式验证数据、转换数据,并自动生成 API 文档。
    
    但有时,我们也需要直接访问 `Request` 对象。
    
    ## `Request` 对象的细节
    
    实际上,**FastAPI** 的底层是 **Starlette**,**FastAPI** 只不过是在  **Starlette** 顶层提供了一些工具,所以能直接使用 Starlette 的  <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">`Request`</a> 对象。
    
    但直接从 `Request` 对象提取数据时(例如,读取请求体),**FastAPI** 不会验证、转换和存档数据(为 API 文档使用 OpenAPI)。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. tests/test_validate_response_dataclass.py

    from typing import List, Optional
    
    import pytest
    from fastapi import FastAPI
    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    from pydantic.dataclasses import dataclass
    
    app = FastAPI()
    
    
    @dataclass
    class Item:
        name: str
        price: Optional[float] = None
        owner_ids: Optional[List[int]] = None
    
    
    @app.get("/items/invalid", response_model=Item)
    def get_invalid():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. docs/en/docs/management-tasks.md

    * Once you think the PR is ready, move it in the internal GitHub project for me to review it.
    
    ## FastAPI People PRs
    
    Every month, a GitHub Action updates the FastAPI People data. Those PRs look like this one: <a href="https://github.com/fastapi/fastapi/pull/11669" class="external-link" target="_blank">👥 Update FastAPI People</a>.
    
    If the tests are passing, you can merge it right away.
    
    ## External Links PRs
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 16 21:56:33 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. docs_src/response_model/tutorial003_04_py310.py

    from fastapi import FastAPI, Response
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal")
    async def get_portal(teleport: bool = False) -> Response | dict:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 352 bytes
    - Viewed (0)
  9. docs_src/custom_response/tutorial003.py

    from fastapi import FastAPI
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 394 bytes
    - Viewed (0)
  10. docs/de/docs/features.md

    # Merkmale
    
    ## FastAPI Merkmale
    
    **FastAPI** ermöglicht Ihnen Folgendes:
    
    ### Basiert auf offenen Standards
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 23:30:12 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top