Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 728 for OpenAPI (0.24 sec)

  1. docs/ko/docs/how-to/configure-swagger-ui.md

    설정을 변경하지 않으면, 기본적으로 구문 강조 기능이 활성화되어 있습니다:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    그러나 `syntaxHighlight`를 `False`로 설정하여 구문 강조 기능을 비활성화할 수 있습니다:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *}
    
    ...그럼 Swagger UI에서 더 이상 구문 강조 기능이 표시되지 않습니다:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## 테마 변경
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 09 12:25:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/metadata.md

    ### 标签顺序
    
    每个标签元数据字典的顺序也定义了在文档用户界面显示的顺序。
    
    例如按照字母顺序,即使 `users` 排在 `items` 之后,它也会显示在前面,因为我们将它的元数据添加为列表内的第一个字典。
    
    ## OpenAPI URL
    
    默认情况下,OpenAPI 模式服务于 `/openapi.json`。
    
    但是你可以通过参数 `openapi_url` 对其进行配置。
    
    例如,将其设置为服务于 `/api/v1/openapi.json`:
    
    {* ../../docs_src/metadata/tutorial002.py hl[3] *}
    
    如果你想完全禁用 OpenAPI 模式,可以将其设置为 `openapi_url=None`,这样也会禁用使用它的文档用户界面。
    
    ## 文档 URLs
    
    你可以配置两个文档用户界面,包括:
    
    * **Swagger UI**:服务于 `/docs`。
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. tests/test_get_request_body.py

        response = client.request("GET", "/product", json=body)
        assert response.json() == body
    
    
    def test_openapi_schema():
        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": {
                "/product": {
                    "get": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. tests/test_repeated_dependency_schema.py

                    "title": "ValidationError",
                    "type": "object",
                },
            }
        },
        "info": {"title": "FastAPI", "version": "0.1.0"},
        "openapi": "3.1.0",
        "paths": {
            "/": {
                "get": {
                    "operationId": "get_deps__get",
                    "parameters": [
                        {
                            "in": "header",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Mar 06 12:18:57 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. tests/test_repeated_parameter_alias.py

        assert response.status_code == 200, response.text
        assert response.json() == {"path": "test_path", "query": "test_query"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == status.HTTP_200_OK
        actual_schema = response.json()
        assert actual_schema == {
            "components": {
                "schemas": {
                    "HTTPValidationError": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. tests/test_additional_properties_bool.py

        assert response.status_code == 200
        assert response.json() == {}
    
    
    def test_openapi_schema():
        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": {
                "/": {
                    "post": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. tests/test_additional_responses_response_class.py

    async def b():
        pass  # pragma: no cover
    
    
    client = TestClient(app)
    
    
    def test_openapi_schema():
        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": {
                "/a": {
                    "get": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_path_params/test_tutorial002.py

                    "type": "int_parsing",
                }
            ]
        }
    
    
    def test_openapi_schema():
        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}": {
                    "get": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. docs/ru/docs/how-to/configure-swagger-ui.md

    <img src="/img/tutorial/extending-openapi/image02.png">
    
    Но вы можете отключить её, установив `syntaxHighlight` в `False`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *}
    
    …и после этого Swagger UI больше не будет показывать подсветку синтаксиса:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## Изменить тему { #change-the-theme }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/body-fields.md

    /// warning | Atenção
    
    Chaves extras passadas para `Field` também estarão presentes no schema OpenAPI resultante da sua aplicação.
    Como essas chaves podem não fazer necessariamente parte da especificação OpenAPI, algumas ferramentas de OpenAPI, por exemplo [o validador do OpenAPI](https://validator.swagger.io/), podem não funcionar com o schema gerado.
    
    ///
    
    ## Recapitulando { #recap }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 2.6K bytes
    - Viewed (0)
Back to top