Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 561 - 570 of 1,239 for Creates (0.04 seconds)

  1. tests/test_security_openid_connect_optional.py

        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: Optional[User] = Depends(get_current_user)):
        if current_user is None:
            return {"msg": "Create an account first"}
        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.4K bytes
    - Click Count (0)
  2. tests/test_openapi_separate_input_output_schemas.py

                                    },
                                }
                            },
                        },
                        "post": {
                            "summary": "Create Item",
                            "operationId": "create_item_items__post",
                            "requestBody": {
                                "content": {
                                    "application/json": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  3. docs_src/dataclasses_/tutorial002_py310.py

    @app.get("/items/next", response_model=Item)
    async def read_next_item():
        return {
            "name": "Island In The Moon",
            "price": 12.99,
            "description": "A place to be playin' and havin' fun",
            "tags": ["breater"],
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 506 bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java

            MessageBuilder builder = new DefaultMessageBuilder();
            format.formatRate(builder, 45.0); // 45 B/s
            assertEquals("45.0 B/s", builder.build());
    
            // Test value greater than or equal to 10
            builder = new DefaultMessageBuilder();
            format.formatRate(builder, 15000.0); // 15 kB/s
            assertEquals("15.0 kB/s", builder.build());
    
            // Test value between 0.05 and 10
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/middleware.md

    ///
    
    ## Create a middleware { #create-a-middleware }
    
    To create a middleware you use the decorator `@app.middleware("http")` on top of a function.
    
    The middleware function receives:
    
    * The `request`.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  6. docs_src/body_fields/tutorial001_py310.py

    
    class Item(BaseModel):
        name: str
        description: str | None = Field(
            default=None, title="The description of the item", max_length=300
        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 523 bytes
    - Click Count (0)
  7. tests/test_tutorial/test_generate_clients/test_tutorial004.py

                                    },
                                },
                                "description": "Validation Error",
                            },
                        },
                        "summary": "Create Item",
                        "tags": [
                            "items",
                        ],
                    },
                },
                "/users/": {
                    "post": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  8. cmd/typed-errors.go

    // error returned when upload id not found
    var errUploadIDNotFound = errors.New("Specified Upload ID is not found")
    
    // error returned when PartNumber is greater than the maximum allowed 10000 parts
    var errInvalidMaxParts = errors.New("Part number is greater than the maximum allowed 10000 parts")
    
    // error returned for session policies > 2048
    var errSessionPolicyTooLarge = errors.New("Session policy should not exceed 2048 characters")
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 16 07:34:24 GMT 2025
    - 5.9K bytes
    - Click Count (1)
  9. migrator/migrator.go

    	})
    
    	return columnTypes, execErr
    }
    
    // CreateView create view from Query in gorm.ViewOption.
    // Query in gorm.ViewOption is a [subquery]
    //
    //	// CREATE VIEW `user_view` AS SELECT * FROM `users` WHERE age > 20
    //	q := DB.Model(&User{}).Where("age > ?", 20)
    //	DB.Debug().Migrator().CreateView("user_view", gorm.ViewOption{Query: q})
    //
    //	// CREATE OR REPLACE VIEW `users_view` AS SELECT * FROM `users` WITH CHECK OPTION
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Oct 26 12:31:09 GMT 2025
    - 29.7K bytes
    - Click Count (0)
  10. build-logic/integration-testing/src/main/kotlin/gradlebuild.integration-tests.gradle.kts

    plugins {
        java
        id("gradlebuild.dependency-modules")
        id("gradlebuild.jvm-compile")
    }
    
    extensions.create<IntegrationTestExtension>("integTest").apply {
        generateDefaultAutoTestedSamplesTest.convention(true)
        testJvmXmx.convention("512m")
    }
    
    val sourceSet = sourceSets.create("${TestType.INTEGRATION.prefix}Test")
    jvmCompile {
        addCompilationFrom(sourceSet)
    }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Aug 18 16:39:23 GMT 2025
    - 2.4K bytes
    - Click Count (5)
Back to Top