Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 96 for userId (0.21 sec)

  1. docs_src/path_params/tutorial003b.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/users")
    async def read_users():
        return ["Rick", "Morty"]
    
    
    @app.get("/users")
    async def read_users2():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 16:16:16 GMT 2022
    - 193 bytes
    - Viewed (0)
  2. tests/associations_test.go

    func TestAssociationError(t *testing.T) {
    	user := *GetUser("TestAssociationError", Config{Pets: 2, Company: true, Account: true, Languages: 2})
    	DB.Create(&user)
    
    	var user1 User
    	DB.Preload("Company").Preload("Pets").Preload("Account").Preload("Languages").First(&user1)
    
    	var emptyUser User
    	var err error
    	// belongs to
    	err = DB.Model(&emptyUser).Association("Company").Delete(&user1.Company)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/entity/FessUser.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.entity;
    
    import java.io.Serializable;
    
    public interface FessUser extends Serializable {
    
        String getName();
    
        String[] getRoleNames();
    
        String[] getGroupNames();
    
        String[] getPermissions();
    
        default boolean isEditable() {
            return false;
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 978 bytes
    - Viewed (0)
  4. docker/Dockerfile.base

      && update-alternatives --set iptables /usr/sbin/iptables-legacy \
      && update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
    
    # Sudoers used to allow tcpdump and other debug utilities.
    RUN useradd -m --uid 1337 istio-proxy && \
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 26 21:50:05 GMT 2022
    - 992 bytes
    - Viewed (0)
  5. tests/delete_test.go

    		}
    	}
    
    	for _, user := range []User{users[0], users[2]} {
    		result = User{}
    		if err := DB.Where("id = ?", user.ID).First(&result).Error; err != nil {
    			t.Errorf("no error should returns when query %v, but got %v", user.ID, err)
    		}
    	}
    
    	if err := DB.Delete(&users[0]).Error; err != nil {
    		t.Errorf("errors happened when delete: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 07:03:34 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  6. src/packaging/common/scripts/preinst

            fi
    
            # Create fess user if not existing
            if ! id $FESS_USER > /dev/null 2>&1 ; then
                echo -n "Creating $FESS_USER user..."
                useradd --system \
                        -M \
                        --gid "$FESS_GROUP" \
                        --shell /sbin/nologin \
                        --comment "fess user" \
                        -d "$FESS_USER_HOME"  \
                        "$FESS_USER"
    Plain Text
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Dec 01 09:48:15 GMT 2016
    - 2.3K bytes
    - Viewed (0)
  7. tests/test_route_scope.py

    from fastapi.routing import APIRoute, APIWebSocketRoute
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/users/{user_id}")
    async def get_user(user_id: str, request: Request):
        route: APIRoute = request.scope["route"]
        return {"user_id": user_id, "path": route.path}
    
    
    @app.websocket("/items/{item_id}")
    async def websocket_item(item_id: str, websocket: WebSocket):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Feb 08 10:23:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/extra-models.md

    ```Python
    user_dict = user_in.dict()
    UserInDB(**user_dict)
    ```
    
    будет равнозначен такому:
    
    ```Python
    UserInDB(**user_in.dict())
    ```
    
    ...потому что `user_in.dict()` - это `dict`, и затем мы указываем, чтобы Python его "распаковал", когда передаём его в `UserInDB` и ставим перед ним `**`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  9. internal/config/identity/ldap/ldap.go

    // boolean is true iff the user DN is found under one of the LDAP user base DNs.
    func (l *Config) GetValidatedUserDN(conn *ldap.Conn, userDN string) (string, bool, error) {
    	return l.GetValidatedDNUnderBaseDN(conn, userDN, l.LDAP.UserDNSearchBaseDistNames)
    }
    
    // GetValidatedGroupDN validates the given group DN. If conn is nil, creates a
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/extra-models.md

    ```
    
    Or more exactly, using `user_dict` directly, with whatever contents it might have in the future:
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
    )
    ```
    
    #### A Pydantic model from the contents of another
    
    As in the example above we got `user_dict` from `user_in.dict()`, this code:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
Back to top