Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for createA (0.04 sec)

  1. scripts/translate.py

    4) For internal links, only translate link text.
    
    Example:
    
        Source (English):
    
            «««
            [Create Pull Requests](help-fastapi.md#create-a-pull-request){.internal-link target=_blank}
            »»»
    
        Result (German):
    
            «««
            [Pull Requests erzeugen](help-fastapi.md#create-a-pull-request){.internal-link target=_blank}
            »»»
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  2. docs/en/docs/index.md

    ---> 100%
    ```
    
    </div>
    
    **Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
    
    ## Example { #example }
    
    ### Create it { #create-it }
    
    Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  3. tests/test_security_oauth2_optional_description.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    reusable_oauth2 = OAuth2(
        flows={
            "password": {
                "tokenUrl": "token",
                "scopes": {"read:users": "Read the users", "write:users": "Create users"},
            }
        },
        description="OAuth2 security scheme",
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. tests/test_sub_callbacks.py

                "paths": {
                    "/invoices/": {
                        "post": {
                            "summary": "Create Invoice",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  5. README.md

    ---> 100%
    ```
    
    </div>
    
    **Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
    
    ## Example
    
    ### Create it
    
    Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py

    from dirty_equals import IsList
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    DESCRIPTIONS = {
        "tutorial003": "Create an item with all the information, name, description, price, tax and a set of unique tags",
        "tutorial004": dedent("""
            Create an item with all the information:
    
            - **name**: each item must have a name
            - **description**: a long description
            - **price**: required
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial008.py

                return_value=a_mock,
                create=True,
            ),
            patch(
                f"{module.__name__}.generate_dep_b",
                return_value=b_mock,
                create=True,
            ),
            patch(
                f"{module.__name__}.generate_dep_c",
                return_value=c_mock,
                create=True,
            ),
        ):
            response = client.get("/")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  8. tests/test_security_oauth2_optional.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    reusable_oauth2 = OAuth2(
        flows={
            "password": {
                "tokenUrl": "token",
                "scopes": {"read:users": "Read the users", "write:users": "Create users"},
            }
        },
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_generate_clients/test_tutorial004.py

                                    },
                                },
                                "description": "Validation Error",
                            },
                        },
                        "summary": "Create Item",
                        "tags": [
                            "items",
                        ],
                    },
                },
                "/users/": {
                    "post": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_generate_clients/test_tutorial002.py

                                },
                            }
                        },
                    },
                    "post": {
                        "tags": ["items"],
                        "summary": "Create Item",
                        "operationId": "create_item_items__post",
                        "requestBody": {
                            "content": {
                                "application/json": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top