Search Options

Results per page
Sort
Preferred Languages
Advance

Results 4311 - 4320 of 7,602 for _class (0.06 sec)

  1. docs_src/response_model/tutorial004_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float = 10.5
        tags: list[str] = []
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 595 bytes
    - Viewed (0)
  2. docs_src/schema_extra_example/tutorial004_py310.py

    from fastapi import Body, FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item = Body(
            examples=[
                {
                    "name": "Foo",
                    "description": "A very nice Item",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jul 01 16:43:29 UTC 2023
    - 786 bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial004_py310.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: CommonQueryParams = Depends()):
        response = {}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 607 bytes
    - Viewed (0)
  4. docs_src/response_model/tutorial001.py

    from typing import Any, List, Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: List[str] = []
    
    
    @app.post("/items/", response_model=Item)
    async def create_item(item: Item) -> Any:
        return item
    
    
    @app.get("/items/", response_model=List[Item])
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 07 13:45:48 UTC 2023
    - 562 bytes
    - Viewed (1)
  5. docs/de/docs/advanced/testing-websockets.md

    {!../../docs_src/app_testing/tutorial002.py!}
    ```
    
    /// note | "Hinweis"
    
    Weitere Informationen finden Sie in der Starlette-Dokumentation zum <a href="https://www.starlette.io/testclient/#testing-websocket-sessions" class="external-link" target="_blank">Testen von WebSockets</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 523 bytes
    - Viewed (0)
  6. docs_src/schema_extra_example/tutorial003_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Body, FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: int,
        item: Annotated[
            Item,
            Body(
                examples=[
                    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 692 bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/badword/SearchForm.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.badword;
    
    /**
     * @author codelibs
     * @author Keiichi Watanabe
     */
    public class SearchForm {
    
        public String id;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 778 bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/fileauth/SearchForm.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.fileauth;
    
    /**
     * @author codelibs
     * @author Keiichi Watanabe
     */
    public class SearchForm {
    
        public String id;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 779 bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/relatedcontent/SearchForm.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.relatedcontent;
    
    /**
     * @author shinsuke
     */
    public class SearchForm {
    
        public String term;
    
        public String content;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 788 bytes
    - Viewed (0)
  10. okhttp-sse/src/test/java/okhttp3/sse/internal/Event.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.sse.internal
    
    internal data class Event(
      val id: String?,
      val type: String?,
      val data: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 23 10:26:25 UTC 2023
    - 720 bytes
    - Viewed (0)
Back to top