Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 1,938 for daha (0.04 sec)

  1. tests/test_dependency_security_overrides.py

        data: List[int] = Depends(get_data),
    ):
        return {"user": user_data[0], "scopes": user_data[1], "data": data}
    
    
    client = TestClient(app)
    
    
    def test_normal():
        response = client.get("/user")
        assert response.json() == {
            "user": "john",
            "scopes": ["foo", "bar"],
            "data": [1, 2, 3],
        }
    
    
    def test_override_data():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 14 15:54:46 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/body-updates.md

    And the data would be saved with that "new" `tax` of `10.5`.
    
    ## Partial updates with `PATCH`
    
    You can also use the <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH" class="external-link" target="_blank">HTTP `PATCH`</a> operation to *partially* update data.
    
    This means that you can send only the data that you want to update, leaving the rest intact.
    
    /// note
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tests/test_generate_unique_id_function.py

        def post_router(item1: Item, item2: Item):
            return item1, item2  # pragma: nocover
    
        app.include_router(router)
        client = TestClient(app)
        response = client.get("/openapi.json")
        data = response.json()
        assert data == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/": {
                    "post": {
                        "summary": "Post Root",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 13 15:10:26 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_security/test_tutorial005_an.py

        data = {"username": username, "password": password}
        if scope:
            data["scope"] = scope
        response = client.post("/token", data=data)
        content = response.json()
        access_token = content.get("access_token")
        return access_token
    
    
    def test_login():
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/reqheader/AdminReqheaderAction.java

            return asHtml(path_AdminReqheader_AdminReqheaderJsp).renderWith(data -> {
                searchPaging(data, form);
            });
        }
    
        protected void searchPaging(final RenderData data, final SearchForm form) {
            RenderDataUtil.register(data, "requestHeaderItems", requestHeaderService.getRequestHeaderList(reqHeaderPager)); // page navi
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. internal/kms/kms.go

    // and options for generating data keys.
    type GenerateKeyRequest struct {
    	// Name is the name of the master key used to generate
    	// the data key.
    	Name string
    
    	// AssociatedData is optional data that is cryptographically
    	// associated with the generated data key. The same data
    	// must be provided when decrypting an encrypted data key.
    	//
    	// Typically, associated data is some metadata about the
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. tests/test_jsonable_encoder.py

        assert jsonable_encoder(model) == "Foo"
    
    
    @needs_pydanticv2
    def test_decimal_encoder_float():
        data = {"value": Decimal(1.23)}
        assert jsonable_encoder(data) == {"value": 1.23}
    
    
    @needs_pydanticv2
    def test_decimal_encoder_int():
        data = {"value": Decimal(2)}
        assert jsonable_encoder(data) == {"value": 2}
    
    
    def test_encode_deque_encodes_child_models():
        class Model(BaseModel):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_form_models/test_tutorial002_an.py

    def test_post_body_form(client: TestClient):
        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    @needs_pydanticv2
    def test_post_body_extra_form(client: TestClient):
        response = client.post(
            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py

    def test_post_body_form(client: TestClient):
        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    @needs_pydanticv1
    def test_post_body_extra_form(client: TestClient):
        response = client.post(
            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/plugins/form-validator/sanitize.js

    e.each||(e=a(e));var g=function(){var b=a(this),c=b.val();a.split(b.attr("data-sanitize"),function(a){if(!(a in d))throw new Error('Use of unknown sanitize command "'+a+'"');c=d[a](c,b,f)}),b.val(c).trigger("keyup.validation")};e.each(function(){var b=a(this);f.sanitizeAll&&b.find("input,textarea").not(c).each(function(){var b=a(this),c=b.attr("data-sanitize")||"";b.attr("data-sanitize",f.sanitizeAll+" "+c)}),b.find("[data-sanitize]").unbind("blur.sanitation",g).bind("blur.sanitation",g),a(funct...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 2.7K bytes
    - Viewed (0)
Back to top