Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for http_url (0.17 sec)

  1. docs_src/openapi_callbacks/tutorial001_py310.py

    from fastapi import APIRouter, FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: str | None = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    @invoices_callback_router.post(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. docs/en/data/topic_repos.yml

    - name: full-stack-fastapi-template
      html_url: https://github.com/fastapi/full-stack-fastapi-template
      stars: 39475
      owner_login: fastapi
      owner_html_url: https://github.com/fastapi
    - name: Hello-Python
      html_url: https://github.com/mouredev/Hello-Python
      stars: 33090
      owner_login: mouredev
      owner_html_url: https://github.com/mouredev
    - name: serve
      html_url: https://github.com/jina-ai/serve
      stars: 21798
      owner_login: jina-ai
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 01 13:17:29 UTC 2025
    - 16K bytes
    - Viewed (0)
  3. scripts/topic_repos.py

                continue
            final_repos.append(
                Repo(
                    name=repo.name,
                    html_url=repo.html_url,
                    stars=repo.stargazers_count,
                    owner_login=repo.owner.login,
                    owner_html_url=repo.owner.html_url,
                )
            )
        data = [repo.model_dump() for repo in final_repos]
    
        # Local development
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 12:34:01 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. tests/test_additional_responses_custom_model_in_callback.py

    from fastapi import APIRouter, FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, HttpUrl
    from starlette.responses import JSONResponse
    
    
    class CustomModel(BaseModel):
        a: int
    
    
    app = FastAPI()
    
    callback_router = APIRouter(default_response_class=JSONResponse)
    
    
    @callback_router.get(
        "{$callback_url}/callback/", responses={400: {"model": CustomModel}}
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. docs_src/openapi_callbacks/tutorial001_py39.py

    from typing import Union
    
    from fastapi import APIRouter, FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: Union[str, None] = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. tests/test_sub_callbacks.py

    from typing import Optional
    
    from fastapi import APIRouter, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: Optional[str] = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. docs/en/docs/external-links.md

    ## GitHub Repositories
    
    Most starred <a href="https://github.com/topics/fastapi" class="external-link" target="_blank">GitHub repositories with the topic `fastapi`</a>:
    
    {% for repo in topic_repos %}
    
    <a href={{repo.html_url}} target="_blank">★ {{repo.stars}} - {{repo.name}}</a> by <a href={{repo.owner_html_url}} target="_blank">@{{repo.owner_login}}</a>.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 12:28:40 UTC 2025
    - 917 bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/body-nested-models.md

    Zum Beispiel, da wir im `Image`-Modell ein Feld `url` haben, können wir deklarieren, dass das eine Instanz von Pydantics `HttpUrl` sein soll, anstelle eines `str`:
    
    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    Es wird getestet, ob der String eine gültige URL ist, und als solche wird er in JSON Schema / OpenAPI dokumentiert.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/body-nested-models.md

    Por exemplo, no modelo `Image` nós temos um campo `url`, nós podemos declara-lo como um `HttpUrl` do Pydantic invés de como uma `str`:
    
    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    A string será verificada para se tornar uma URL válida e documentada no JSON Schema / OpenAPI como tal.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/body-nested-models.md

    Por ejemplo, como en el modelo `Image` tenemos un campo `url`, podemos declararlo como una instance de `HttpUrl` de Pydantic en lugar de un `str`:
    
    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    El string será verificado para ser una URL válida, y documentado en JSON Schema / OpenAPI como tal.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top