Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 481 - 490 of 669 for srcs (0.02 seconds)

  1. docs/ru/docs/tutorial/schema-extra-example.md

    {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *}
    
    ### Пример в UI документации { #example-in-the-docs-ui }
    
    С любым из перечисленных выше методов это будет выглядеть так в `/docs`:
    
    <img src="/img/tutorial/body-fields/image01.png">
    
    ### `Body` с несколькими `examples` { #body-with-multiple-examples }
    
    Конечно, вы можете передать и несколько `examples`:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/response-model.md

    因此,**FastAPI** 将会负责过滤掉未在输出模型中声明的所有数据(使用 Pydantic)。
    
    ## 在文档中查看
    
    当你查看自动化文档时,你可以检查输入模型和输出模型是否都具有自己的 JSON Schema:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png">
    
    并且两种模型都将在交互式 API 文档中使用:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png">
    
    ## 响应模型编码参数
    
    你的响应模型可以具有默认值,例如:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/dataclasses.md

    ///
    
    ## `response_model` 使用数据类
    
    在 `response_model` 参数中使用 `dataclasses`:
    
    {* ../../docs_src/dataclasses_/tutorial002.py hl[1,7:13,19] *}
    
    本例把数据类自动转换为 Pydantic 数据类。
    
    API 文档中也会显示相关概图:
    
    <img src="/img/tutorial/dataclasses/image01.png">
    
    ## 在嵌套数据结构中使用数据类
    
    您还可以把 `dataclasses` 与其它类型注解组合在一起,创建嵌套数据结构。
    
    还有一些情况也可以使用 Pydantic 的 `dataclasses`。例如,在 API 文档中显示错误。
    
    本例把标准的 `dataclasses` 直接替换为 `pydantic.dataclasses`:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  4. docs/es/docs/advanced/security/oauth2-scopes.md

    Y podrás seleccionar cuáles scopes quieres dar de acceso: `me` y `items`.
    
    Este es el mismo mecanismo utilizado cuando das permisos al iniciar sesión con Facebook, Google, GitHub, etc:
    
    <img src="/img/tutorial/security/image11.png">
    
    ## Token JWT con scopes { #jwt-token-with-scopes }
    
    Ahora, modifica la *path operation* del token para devolver los scopes solicitados.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 10:15:01 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/cookie-param-models.md

    ## Check the Docs { #check-the-docs }
    
    You can see the defined cookies in the docs UI at `/docs`:
    
    <div class="screenshot">
    <img src="/img/tutorial/cookie-param-models/image01.png">
    </div>
    
    /// info
    
    Have in mind that, as **browsers handle cookies** in special ways and behind the scenes, they **don't** easily allow **JavaScript** to touch them.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

     */
    class PublicSuffixListGenerator(
      projectRoot: Path = ".".toPath(),
      val fileSystem: FileSystem = FileSystem.SYSTEM,
      val client: OkHttpClient = OkHttpClient(),
    ) {
      private val testResources = projectRoot / "okhttp/src/jvmTest/resources"
      private val publicSuffixListDotDat = testResources / "okhttp3/internal/publicsuffix/public_suffix_list.dat"
      private val outputFile = testResources / PUBLIC_SUFFIX_RESOURCE
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Aug 06 05:33:11 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/openapi-webhooks.md

    ### 查看文档
    
    现在您可以启动您的应用程序并访问 <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>.
    
    您会看到您的文档不仅有正常的*路径操作*显示,现在还多了一些**网络钩子**:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 19 15:30:38 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  8. docs/ko/docs/tutorial/query-params-str-validations.md

        "foo",
        "bar"
      ]
    }
    ```
    
    /// tip | 팁
    
    위의 예와 같이 `list` 자료형으로 쿼리 매개변수를 선언하려면 `Query`를 명시적으로 사용해야 합니다. 그렇지 않으면 요청 본문으로 해석됩니다.
    
    ///
    
    대화형 API 문서는 여러 값을 허용하도록 수정 됩니다:
    
    <img src="/img/tutorial/query-params-str-validations/image02.png">
    
    ### 쿼리 매개변수 리스트 / 기본값을 사용하는 다중값
    
    그리고 제공된 값이 없으면 기본 `list` 값을 정의할 수도 있습니다:
    
    {* ../../docs_src/query_params_str_validations/tutorial012.py hl[9] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 9.2K bytes
    - Click Count (0)
  9. tensorflow/c/c_api_test.cc

           std::vector<std::vector<int64_t>>{{n}, {1, n}, {n, 1}, {n / 2, 2}}) {
        // Create C++ Tensor
        Tensor src(tensorflow::DT_STRING, TensorShape(dims));
        for (int64_t i = 0; i < src.NumElements(); ++i) {
          src.flat<tstring>()(i) = data[i];
        }
        TF_Tensor* dst = TF_TensorFromTensor(src, &status);
        ASSERT_TRUE(status.ok()) << status.message();
    
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Nov 17 00:00:38 GMT 2025
    - 97K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/behind-a-proxy.md

    <img src="/img/tutorial/behind-a-proxy/image01.png">
    
    But if we access the docs UI at the "official" URL using the proxy with port `9999`, at `/api/v1/docs`, it works correctly! 🎉
    
    You can check it at <a href="http://127.0.0.1:9999/api/v1/docs" class="external-link" target="_blank">http://127.0.0.1:9999/api/v1/docs</a>:
    
    <img src="/img/tutorial/behind-a-proxy/image02.png">
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 16.4K bytes
    - Click Count (0)
Back to Top