Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 438 for stub (0.02 sec)

  1. tests/test_skip_defaults.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class SubModel(BaseModel):
        a: Optional[str] = "foo"
    
    
    class Model(BaseModel):
        x: Optional[int] = None
        sub: SubModel
    
    
    class ModelSubclass(Model):
        y: int
        z: int = 0
        w: Optional[int] = None
    
    
    class ModelDefaults(BaseModel):
        w: Optional[str] = None
        x: Optional[str] = None
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sub_applications/test_tutorial001.py

        "paths": {
            "/sub": {
                "get": {
                    "responses": {
                        "200": {
                            "description": "Successful Response",
                            "content": {"application/json": {"schema": {}}},
                        }
                    },
                    "summary": "Read Sub",
                    "operationId": "read_sub_sub_get",
                }
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleBuildDocumentationPlugin.java

                // Javadocs reference goes into javadoc/
                task.from(extension.getJavadocs().getRenderedDocumentation(), sub -> sub.into("javadoc"));
    
                // Dokka Kotlin DSL reference goes into kotlin-dsl/
                task.from(extension.getKotlinDslReference().getRenderedDocumentation(), sub -> sub.into("kotlin-dsl"));
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Apr 17 20:04:00 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. docs_src/sub_applications/tutorial001.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/app")
    def read_main():
        return {"message": "Hello World from main app"}
    
    
    subapi = FastAPI()
    
    
    @subapi.get("/sub")
    def read_sub():
        return {"message": "Hello World from sub API"}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jun 11 21:53:19 UTC 2020
    - 274 bytes
    - Viewed (0)
  5. docs/es/docs/python-types.md

    * La variable `items_s` es un `set` y cada uno de sus ítems es de tipo `bytes`.
    
    #### Diccionarios (Dicts)
    
    Para definir un `dict` le pasas 2 sub-tipos separados por comas.
    
    El primer sub-tipo es para los keys del `dict`.
    
    El segundo sub-tipo es para los valores del `dict`:
    
    ```Python hl_lines="1  4"
    {!../../docs_src/python_types/tutorial008.py!}
    ```
    
    Esto significa:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. tests/test_dependency_duplicates.py

                                },
                            },
                        },
                    }
                },
                "/with-duplicates-sub": {
                    "post": {
                        "summary": "No Duplicates Sub",
                        "operationId": "no_duplicates_sub_with_duplicates_sub_post",
                        "requestBody": {
                            "content": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. helm/minio/templates/_helper_policy.tpl

    {{- $statements_length := len .statements -}}
    {{- $statements_length := sub $statements_length 1 -}}
    {
      "Version": "2012-10-17",
      "Statement": [
    {{- range $i, $statement := .statements }}
        {
          "Effect": "{{ $statement.effect | default "Allow" }}",
          "Action": [
    "{{ $statement.actions | join "\",\n\"" }}"
          ]{{ if $statement.resources }},
          "Resource": [
    "{{ $statement.resources | join "\",\n\"" }}"
          ]{{ end }}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 19 14:39:11 UTC 2023
    - 872 bytes
    - Viewed (0)
  8. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt

    import org.gradle.api.Project
    import org.gradle.kotlin.dsl.support.serviceOf
    import org.gradle.process.ExecOperations
    import java.io.ByteArrayOutputStream
    import java.io.File
    
    
    /**
     * `dir / "sub"` is the same as `dir.resolve("sub")`.
     *
     * @see [File.resolve]
     */
    operator fun File.div(child: String): File =
        resolve(child)
    
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Sep 24 21:39:46 UTC 2024
    - 1K bytes
    - Viewed (0)
  9. docs/tr/docs/advanced/wsgi.md

    # WSGI - Flask, Django ve Daha Fazlasını FastAPI ile Kullanma
    
    WSGI uygulamalarını [Sub Applications - Mounts](sub-applications.md){.internal-link target=_blank}, [Behind a Proxy](behind-a-proxy.md){.internal-link target=_blank} bölümlerinde gördüğünüz gibi bağlayabilirsiniz.
    
    Bunun için `WSGIMiddleware` ile Flask, Django vb. WSGI uygulamanızı sarmalayabilir ve FastAPI'ya bağlayabilirsiniz.
    
    ## `WSGIMiddleware` Kullanımı
    
    `WSGIMiddleware`'ı projenize dahil edin.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/wsgi.md

    # Including WSGI - Flask, Django, others
    
    You can mount WSGI applications as you saw with [Sub Applications - Mounts](sub-applications.md){.internal-link target=_blank}, [Behind a Proxy](behind-a-proxy.md){.internal-link target=_blank}.
    
    For that, you can use the `WSGIMiddleware` and use it to wrap your WSGI application, for example, Flask, Django, etc.
    
    ## Using `WSGIMiddleware`
    
    You need to import `WSGIMiddleware`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top