Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 802 for users3 (0.14 sec)

  1. tests/test_tutorial/test_path_operation_configurations/test_tutorial006.py

                    }
                },
                "/users/": {
                    "get": {
                        "responses": {
                            "200": {
                                "description": "Successful Response",
                                "content": {"application/json": {"schema": {}}},
                            }
                        },
                        "tags": ["users"],
                        "summary": "Read Users",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. tests/test_security_api_key_header.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyHeader(name="key")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. tests/test_param_in_path_and_dependency.py

            "paths": {
                "/users/{user_id}": {
                    "get": {
                        "summary": "Read Users",
                        "operationId": "read_users_users__user_id__get",
                        "parameters": [
                            {
                                "required": True,
                                "schema": {"title": "User Id", "type": "integer"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. tests/test_security_api_key_header_description.py

    app = FastAPI()
    
    api_key = APIKeyHeader(name="key", description="An API Key Header")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. clause/where_test.go

    			}},
    			"SELECT * FROM `users` WHERE `users`.`id` = ? OR `name` <> ? AND `age` > ?",
    			[]interface{}{"1", "jinzhu", 18},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Where{
    				Exprs: []clause.Expression{clause.Or(clause.Eq{Column: clause.PrimaryColumn, Value: "1"}), clause.Or(clause.Neq{Column: "name", Value: "jinzhu"})},
    			}},
    			"SELECT * FROM `users` WHERE `users`.`id` = ? OR `name` <> ?",
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/user/cbean/ca/bs/BsUserCA.java

     */
    package org.codelibs.fess.es.user.cbean.ca.bs;
    
    import org.codelibs.fess.es.user.allcommon.EsAbstractConditionAggregation;
    import org.codelibs.fess.es.user.allcommon.EsAbstractConditionQuery;
    import org.codelibs.fess.es.user.cbean.ca.UserCA;
    import org.codelibs.fess.es.user.cbean.cq.UserCQ;
    import org.codelibs.fess.es.user.cbean.cq.bs.BsUserCQ;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 212.4K bytes
    - Viewed (0)
  7. tests/associations_has_many_test.go

    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	CheckUser(t, user, user)
    
    	// Find
    	var user2 User
    	DB.Find(&user2, "id = ?", user.ID)
    	DB.Model(&user2).Association("Team").Find(&user2.Team)
    	CheckUser(t, user2, user)
    
    	// Count
    	AssertAssociationCount(t, user, "Team", 2, "")
    
    	// Append
    	team := *GetUser("team", Config{})
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/security/get-current-user.md

    ```
    
    ////
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ‘ฅ ๐Ÿ“ฃ ๐Ÿ†Ž `current_user` Pydantic ๐Ÿท `User`.
    
    ๐Ÿ‘‰ ๐Ÿ”œ โ„น ๐Ÿ‡บ๐Ÿ‡ฒ ๐Ÿ”˜ ๐Ÿ”ข โฎ๏ธ ๐ŸŒ ๐Ÿ› ๏ธ &amp; ๐Ÿ†Ž โœ….
    
    /// tip
    
    ๐Ÿ‘† 5๏ธโƒฃ๐Ÿ“† ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ“จ ๐Ÿ’ช ๐Ÿ“ฃ โฎ๏ธ Pydantic ๐Ÿท.
    
    ๐Ÿ“ฅ **FastAPI** ๐Ÿ† ๐Ÿšซ ๐Ÿคš ๐Ÿ˜จ โ†ฉ๏ธ ๐Ÿ‘† โš™๏ธ `Depends`.
    
    ///
    
    /// check
    
    ๐ŸŒŒ ๐Ÿ‘‰ ๐Ÿ”— โš™๏ธ ๐Ÿ— โœ” ๐Ÿ‘ฅ โœ”๏ธ ๐ŸŽ ๐Ÿ”— (๐ŸŽ "โ˜‘") ๐Ÿ‘ˆ ๐ŸŒ ๐Ÿ“จ `User` ๐Ÿท.
    
    ๐Ÿ‘ฅ ๐Ÿšซ ๐Ÿšซ โœ”๏ธ ๐Ÿ•ด 1๏ธโƒฃ ๐Ÿ”— ๐Ÿ‘ˆ ๐Ÿ’ช ๐Ÿ“จ ๐Ÿ‘ˆ ๐Ÿ†Ž ๐Ÿ’ฝ.
    
    ///
    
    ## ๐ŸŽ ๐Ÿท
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/security/get-current-user.md

    `get_current_user` ใฏไฝœๆˆใ—ใŸ๏ผˆๅฝ็‰ฉใฎ๏ผ‰ใƒฆใƒผใƒ†ใ‚ฃใƒชใƒ†ใ‚ฃ้–ขๆ•ฐใ‚’ไฝฟใฃใฆใ€ `str` ใจใ—ใฆใƒˆใƒผใ‚ฏใƒณใ‚’ๅ—ใ‘ๅ–ใ‚Šใ€ๅ…ˆใปใฉใฎPydanticใฎ `User` ใƒขใƒ‡ใƒซใ‚’่ฟ”ๅดใ—ใพใ™:
    
    ```Python hl_lines="19-22  26-27"
    {!../../docs_src/security/tutorial002.py!}
    ```
    
    ## ็พๅœจใฎใƒฆใƒผใ‚ถใƒผใฎๆณจๅ…ฅ
    
    ใงใ™ใฎใงใ€ `get_current_user` ใซๅฏพใ—ใฆๅŒๆง˜ใซ *path operation* ใฎไธญใง `Depends` ใ‚’ๅˆฉ็”จใงใใพใ™ใ€‚
    
    ```Python hl_lines="31"
    {!../../docs_src/security/tutorial002.py!}
    ```
    
    Pydanticใƒขใƒ‡ใƒซใฎ `User` ใจใ—ใฆใ€ `current_user` ใฎๅž‹ใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใ“ใจใซๆณจๆ„ใ—ใฆใใ ใ•ใ„ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/bigger-applications.md

    ๐Ÿ•น `items` ๐Ÿ”œ โœ”๏ธ ๐Ÿ”ข `router` (`items.router`). ๐Ÿ‘‰ ๐ŸŽ 1๏ธโƒฃ ๐Ÿ‘ฅ โœ ๐Ÿ“ `app/routers/items.py`, โšซ๏ธ `APIRouter` ๐ŸŽš.
    
    &amp; โคด๏ธ ๐Ÿ‘ฅ ๐ŸŽ ๐Ÿ•น `users`.
    
    ๐Ÿ‘ฅ ๐Ÿ’ช ๐Ÿ—„ ๐Ÿ‘ซ ๐Ÿ’–:
    
    ```Python
    from app.routers import items, users
    ```
    
    /// info
    
    ๐Ÿฅ‡ โฌ "โš– ๐Ÿ—„":
    
    ```Python
    from .routers import items, users
    ```
    
    ๐Ÿฅˆ โฌ "๐ŸŽ† ๐Ÿ—„":
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top