Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 316 for Updated (0.18 sec)

  1. tests/test_tutorial/test_bigger_applications/test_main_an.py

                            },
                        },
                    },
                    "put": {
                        "tags": ["items", "custom"],
                        "summary": "Update Item",
                        "operationId": "update_item_items__item_id__put",
                        "parameters": [
                            {
                                "required": True,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

                            },
                        },
                    },
                    "put": {
                        "tags": ["items", "custom"],
                        "summary": "Update Item",
                        "operationId": "update_item_items__item_id__put",
                        "parameters": [
                            {
                                "required": True,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  3. fastapi/param_functions.py

            Union[int, None],
            Doc(
                """
                Priority of the alias. This affects whether an alias generator is used.
                """
            ),
        ] = _Unset,
        # TODO: update when deprecating Pydantic v1, import these types
        # validation_alias: str | AliasPath | AliasChoices | None
        validation_alias: Annotated[
            Union[str, None],
            Doc(
                """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  4. docs_src/security/tutorial004.py

        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(token: str = Depends(oauth2_scheme)):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
  5. docs_src/security/tutorial004_an.py

        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_extra_data_types/test_tutorial001.py

            "end_datetime": "2018-12-24T15:00:00+00:00",
            "repeat_at": "15:30:00",
            "process_after": 300,
        }
        expected_response = data.copy()
        expected_response.update(
            {
                "start_process": "2018-12-22T14:05:00+00:00",
                "duration": 176_100,
                "item_id": item_id,
            }
        )
        response = client.put(f"/items/{item_id}", json=data)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 00:11:40 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. docs/en/docs/contributing.md

    ### Using your local FastAPI
    
    If you create a Python file that imports and uses FastAPI, and run it with the Python from your local environment, it will use your cloned local FastAPI source code.
    
    And if you update that local FastAPI source code when you run that Python file again, it will use the fresh version of FastAPI you just edited.
    
    That way, you don't have to "install" your local version to be able to test every change.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/testing.md

        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python
        {!> ../../../docs_src/app_testing/app_b/main.py!}
        ```
    
    ### Extended testing file
    
    You could then update `test_main.py` with the extended tests:
    
    ```Python
    {!> ../../../docs_src/app_testing/app_b/test_main.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/first-steps.md

    Normalerweise verwenden Sie:
    
    * `POST`: um Daten zu erzeugen (create).
    * `GET`: um Daten zu lesen (read).
    * `PUT`: um Daten zu aktualisieren (update).
    * `DELETE`: um Daten zu löschen (delete).
    
    In OpenAPI wird folglich jede dieser HTTP-Methoden als „Operation“ bezeichnet.
    
    Wir werden sie auch „**Operationen**“ nennen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:16:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/generate-clients.md

    * Methods.
    * Request payloads in the body, query parameters, etc.
    * Response payloads.
    
    You would also have **inline errors** for everything.
    
    And whenever you update the backend code, and **regenerate** the frontend, it would have any new *path operations* available as methods, the old ones removed, and any other change would be reflected on the generated code. 🤓
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top