Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for shout (0.18 sec)

  1. docs_src/query_params/tutorial003.py

    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str, q: Union[str, None] = None, short: bool = False):
        item = {"item_id": item_id}
        if q:
            item.update({"q": q})
        if not short:
            item.update(
                {"description": "This is an amazing item that has a long description"}
            )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 406 bytes
    - Viewed (0)
  2. docs_src/query_params/tutorial004_py310.py

    app = FastAPI()
    
    
    @app.get("/users/{user_id}/items/{item_id}")
    async def read_user_item(
        user_id: int, item_id: str, q: str | None = None, short: bool = False
    ):
        item = {"item_id": item_id, "owner_id": user_id}
        if q:
            item.update({"q": q})
        if not short:
            item.update(
                {"description": "This is an amazing item that has a long description"}
            )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 436 bytes
    - Viewed (0)
  3. fastapi/applications.py

                    * `description`: A short description of the tag.
                        [CommonMark syntax](https://commonmark.org/) MAY be used for rich
                        text representation.
                    * `externalDocs`: Additional external documentation for this tag. If
                        provided, it would contain a `dict` with:
                        * `description`: A short description of the target documentation.
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  4. docs_src/query_params/tutorial003_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str, q: str | None = None, short: bool = False):
        item = {"item_id": item_id}
        if q:
            item.update({"q": q})
        if not short:
            item.update(
                {"description": "This is an amazing item that has a long description"}
            )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 374 bytes
    - Viewed (0)
  5. docs_src/query_params/tutorial004.py

    app = FastAPI()
    
    
    @app.get("/users/{user_id}/items/{item_id}")
    async def read_user_item(
        user_id: int, item_id: str, q: Union[str, None] = None, short: bool = False
    ):
        item = {"item_id": item_id, "owner_id": user_id}
        if q:
            item.update({"q": q})
        if not short:
            item.update(
                {"description": "This is an amazing item that has a long description"}
            )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 468 bytes
    - Viewed (0)
  6. ci/official/wheel_test/test_import_api_packages.py

          # Convert package name to the short version:
          # tensorflow._api.v2.distribute.experimental to
          # tensorflow.distribute.experimental
          short_package_name = package_name.replace(f"_api.{version}.", "")
          # skip non-importable paths
          if short_package_name not in self.packages_for_skip:
            try:
              __import__(short_package_name)
            except ImportError:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 13 15:52:07 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  7. ci/official/utilities/extract_resultstore_links.py

                               'the JUnit-based XML with ResultStore links.')
      parser.add_argument('--print',
                          action='store_true', dest='print', default=False,
                          help='Whether to print out a short summary with the '
                               'found ResultStore links (if any).')
      parser.add_argument('-v', '--verbose',
                          action='store_true', dest='verbose', default=False,
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  8. tests/test_path.py

        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "string_too_short",
                        "loc": ["path", "item_id"],
                        "msg": "String should have at least 3 characters",
                        "input": "fo",
                        "ctx": {"min_length": 3},
                    }
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 34.4K bytes
    - Viewed (0)
  9. tests/test_annotated.py

                    "type": "value_error.missing",
                }
            )
        ]
    }
    foo_is_short = {
        "detail": [
            IsDict(
                {
                    "ctx": {"min_length": 1},
                    "loc": ["query", "foo"],
                    "msg": "String should have at least 1 character",
                    "type": "string_too_short",
                    "input": "",
                }
            )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top