Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1511 - 1520 of 2,000 for Fastapi (0.05 sec)

  1. docs/en/docs/deployment/concepts.md

    And we as developers keep improving the code as we find those bugs and as we implement new features (possibly adding new bugs too πŸ˜…).
    
    ### Small Errors Automatically Handled
    
    When building web APIs with FastAPI, if there's an error in our code, FastAPI will normally contain it to the single request that triggered the error. πŸ›‘
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 18 16:09:57 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. docs/ko/docs/python-types.md

    ///
    
    **FastAPI**λŠ” λͺ¨λ‘ Pydantic을 기반으둜 λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.
    
    이 λͺ¨λ“  것이 μ‹€μ œλ‘œ μ–΄λ–»κ²Œ μ‚¬μš©λ˜λŠ”μ§€μ— λŒ€ν•΄μ„œλŠ” [μžμŠ΅μ„œ - μ‚¬μš©μž μ•ˆλ‚΄μ„œ](tutorial/index.md){.internal-link target=_blank} μ—μ„œ 더 많이 ν™•μΈν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€.
    
    ## **FastAPI**μ—μ„œμ˜ νƒ€μž… 힌트
    
    **FastAPI**λŠ” μ—¬λŸ¬ λΆ€λΆ„μ—μ„œ νƒ€μž… 힌트의 μž₯점을 μ·¨ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.
    
    **FastAPI**μ—μ„œ νƒ€μž… νžŒνŠΈμ™€ ν•¨κ»˜ λ§€κ°œλ³€μˆ˜λ₯Ό μ„ μ–Έν•˜λ©΄ μž₯점은:
    
    * **에디터 도움**.
    * **νƒ€μž… 확인**.
    
    ...그리고 **FastAPI**λŠ” 같은 μ •μ˜λ₯Ό μ•„λž˜μ—λ„ μ μš©ν•©λ‹ˆλ‹€:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. docs/en/docs/reference/encoders.md

    # Encoders - `jsonable_encoder`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 71 bytes
    - Viewed (0)
  4. tests/test_infer_param_optionality.py

    from typing import Optional
    
    from dirty_equals import IsDict
    from fastapi import APIRouter, FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    user_router = APIRouter()
    item_router = APIRouter()
    
    
    @user_router.get("/")
    def get_users():
        return [{"user_id": "u1"}, {"user_id": "u2"}]
    
    
    @user_router.get("/{user_id}")
    def get_user(user_id: str):
        return {"user_id": user_id}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  5. tests/test_openapi_examples.py

    from typing import Union
    
    from dirty_equals import IsDict
    from fastapi import Body, Cookie, FastAPI, Header, Path, Query
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        data: str
    
    
    @app.post("/examples/")
    def examples(
        item: Item = Body(
            examples=[
                {"data": "Data in Body examples, example1"},
            ],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 15:57:43 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.path_operation_advanced_configuration.tutorial001 import app
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"item_id": "Foo"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dataclasses/test_tutorial001.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.dataclasses.tutorial001 import app
    
    client = TestClient(app)
    
    
    def test_post_item():
        response = client.post("/items/", json={"name": "Foo", "price": 3})
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 3,
            "description": None,
            "tax": None,
        }
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_dependencies/test_tutorial004.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.dependencies.tutorial004 import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            (
                "/items",
                200,
                {
                    "items": [
                        {"item_name": "Foo"},
                        {"item_name": "Bar"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial004_an.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.dependencies.tutorial004_an import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            (
                "/items",
                200,
                {
                    "items": [
                        {"item_name": "Foo"},
                        {"item_name": "Bar"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_behind_a_proxy/test_tutorial002.py

    from fastapi.testclient import TestClient
    
    from docs_src.behind_a_proxy.tutorial002 import app
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello World", "root_path": "/api/v1"}
    
    
    def test_openapi():
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top