Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 361 - 370 of 1,554 for FastApi (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/additional_responses/tutorial003_py39.py

    from fastapi import FastAPI
    from fastapi.responses import JSONResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    class Message(BaseModel):
        message: str
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={
            404: {"model": Message, "description": "The item was not found"},
            200: {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 837 bytes
    - Click Count (0)
  2. docs/en/docs/deployment/index.md

    For example, we, the team behind FastAPI, built <a href="https://fastapicloud.com" class="external-link" target="_blank">**FastAPI Cloud**</a>, to make deploying FastAPI apps to the cloud as streamlined as possible, with the same developer experience of working with FastAPI.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 17 19:33:53 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. docs/es/docs/deployment/index.md

    Por ejemplo, nosotros, el equipo detrás de FastAPI, construimos <a href="https://fastapicloud.com" class="external-link" target="_blank">**FastAPI Cloud**</a>, para hacer que desplegar aplicaciones de FastAPI en la nube sea lo más ágil posible, con la misma experiencia de desarrollador de trabajar con FastAPI.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  4. tests/test_no_swagger_ui_redirect.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI(swagger_ui_oauth2_redirect_url=None)
    
    
    @app.get("/items/")
    async def read_items():
        return {"id": "foo"}
    
    
    client = TestClient(app)
    
    
    def test_swagger_ui():
        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 786 bytes
    - Click Count (0)
  5. tests/test_optional_file_list.py

    from typing import Optional
    
    from fastapi import FastAPI, File
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.post("/files")
    async def upload_files(files: Optional[list[bytes]] = File(None)):
        if files is None:
            return {"files_count": 0}
        return {"files_count": len(files), "sizes": [len(f) for f in files]}
    
    
    def test_optional_bytes_list():
        client = TestClient(app)
        response = client.post(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 821 bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/response-model.md

    ### Filtragem de dados FastAPI { #fastapi-data-filtering }
    
    Agora, para FastAPI, ele verá o tipo de retorno e garantirá que o que você retornar inclua **apenas** os campos que são declarados no tipo.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  7. tests/test_openapi_servers.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI(
        servers=[
            {"url": "/", "description": "Default, relative server"},
            {
                "url": "http://staging.localhost.tiangolo.com:8000",
                "description": "Staging but actually localhost still",
            },
            {"url": "https://prod.example.com"},
        ]
    )
    
    
    @app.get("/foo")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  8. tests/test_validate_response_dataclass.py

    from typing import 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():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  9. docs/fr/docs/features.md

    # Fonctionnalités
    
    ## Fonctionnalités de FastAPI
    
    **FastAPI** vous offre ceci:
    
    ### Basé sur des standards ouverts
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  10. docs/ja/docs/history-design-future.md

    # 歴史、設計、そしてこれから
    
    少し前に、<a href="https://github.com/fastapi/fastapi/issues/3#issuecomment-454956920" class="external-link" target="_blank">**FastAPI**
    のユーザーに以下の様に尋ねられました</a>:
    
    > このプロジェクトの歴史は?何もないところから、数週間ですごいものができているようです。 [...]
    
    これがその歴史のほんの一部です。
    
    ## 代替手段
    
    数年前から、私は複雑な要件を持つAPI (機械学習、分散システム、非同期ジョブ、NoSQLデータベースなど) を作成しており、いくつかの開発者チームを率いています。
    
    その一環で、多くの方法を調査し、テストし、利用する必要がありました。
    
    **FastAPI** の歴史は、その前身の歴史が大部分を占めています。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 5.3K bytes
    - Click Count (0)
Back to Top