Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 983 for iter (0.05 sec)

  1. tests/test_openapi_examples.py

    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"},
            ],
            openapi_examples={
                "Example One": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 15:57:43 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dataclasses/test_tutorial003.py

                                "items": {"$ref": "#/components/schemas/ValidationError"},
                            }
                        },
                    },
                    "Item": {
                        "title": "Item",
                        "required": ["name"],
                        "type": "object",
                        "properties": {
                            "name": {"title": "Name", "type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. docs_src/bigger_applications/app_an_py39/routers/items.py

    @router.get("/")
    async def read_items():
        return fake_items_db
    
    
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        if item_id not in fake_items_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return {"name": fake_items_db[item_id]["name"], "item_id": item_id}
    
    
    @router.put(
        "/{item_id}",
        tags=["custom"],
        responses={403: {"description": "Operation forbidden"}},
    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 1011 bytes
    - Viewed (0)
  4. docs_src/sql_databases_peewee/sql_app/crud.py

        db_user.save()
        return db_user
    
    
    def get_items(skip: int = 0, limit: int = 100):
        return list(models.Item.select().offset(skip).limit(limit))
    
    
    def create_user_item(item: schemas.ItemCreate, user_id: int):
        db_item = models.Item(**item.dict(), owner_id=user_id)
        db_item.save()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 843 bytes
    - Viewed (0)
  5. docs/en/docs/advanced/templates.md

    ///
    
    ## Writing templates
    
    Then you can write a template at `templates/item.html` with, for example:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Template Context Values
    
    In the HTML that contains:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    ...it will show the `id` taken from the "context" `dict` you passed:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/templates.md

    ///
    
    ## 编写模板
    
    编写模板 `templates/item.html`,代码如下:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### 模板上下文
    
    在包含如下语句的html中:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    ...这将显示你从"context"字典传递的 `id`:
    
    ```Python
    {"id": id}
    ```
    
    例如。当ID为 `42`时, 会渲染成:
    
    ```html
    Item ID: 42
    ```
    
    ### 模板 `url_for` 参数
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. fess-crawler/src/test/resources/sitemaps/sitemap1.xml

       </url>
       <url>
          <loc>http://www.example.com/catalog?item=12&amp;desc=vacation_hawaii</loc>
          <changefreq>weekly</changefreq>
       </url>
       <url>
          <loc>http://www.example.com/catalog?item=73&amp;desc=vacation_new_zealand</loc>
          <lastmod>2004-12-23</lastmod>
          <changefreq>weekly</changefreq>
       </url>
       <url>
          <loc>http://www.example.com/catalog?item=74&amp;desc=vacation_newfoundland</loc>
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 915 bytes
    - Viewed (0)
  8. apache-maven/src/assembly/maven/conf/maven.properties

    maven.user.conf         = ${user.home}/.m2
    maven.project.conf      = ${session.rootDirectory}/.mvn
    
    # Comma-separated list of files to include.
    # Each item may be enclosed in quotes to gracefully include spaces. Items are trimmed before being loaded.
    # If the first character of an item is a question mark, the load will silently fail if the file does not exist.
    ${includes} = ?"${maven.user.conf}/maven.properties", \
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:11:04 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ModelBuilderSupport.java

            List<Element> matches = new ArrayList<Element>();
            NodeList childNodes = element.getChildNodes();
            for (int i = 0; i < childNodes.getLength(); i++) {
                Node node = childNodes.item(i);
                if (node instanceof Element) {
                    Element childElement = (Element) node;
                    if (childElement.getTagName().equals(childName)) {
                        matches.add(childElement);
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  10. src/main/webapp/WEB-INF/view/admin/design/admin_design.jsp

                                        <la:select styleId="fileName" property="fileName" styleClass="form-control">
                                            <c:forEach var="item" varStatus="s" items="${fileNameItems}">
                                                <la:option value="${item}">${f:h(item)}</la:option>
                                            </c:forEach>
                                        </la:select>
                                    </div>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Feb 12 20:25:27 UTC 2020
    - 11.1K bytes
    - Viewed (0)
Back to top