Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 488 for csproduct (0.18 sec)

  1. tests/test_get_request_body.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Product(BaseModel):
        name: str
        description: str = None  # type: ignore
        price: float
    
    
    @app.get("/product")
    async def create_item(product: Product):
        return product
    
    
    client = TestClient(app)
    
    
    def test_get_with_body():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/xcodeproj/PBXTarget.java

            INDEXER("org.gradle.product-type.indexer"),
    
            STATIC_LIBRARY("com.apple.product-type.library.static"),
            DYNAMIC_LIBRARY("com.apple.product-type.library.dynamic"),
            TOOL("com.apple.product-type.tool"),
            BUNDLE("com.apple.product-type.bundle"),
            FRAMEWORK("com.apple.product-type.framework"),
            STATIC_FRAMEWORK("com.apple.product-type.framework.static"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. tests/test_request_body_parameters_media_type.py

    
    # NOTE: These are not valid JSON:API resources
    # but they are fine for testing requestBody with custom media_type
    class Product(BaseModel):
        name: str
        price: float
    
    
    class Shop(BaseModel):
        name: str
    
    
    @app.post("/products")
    async def create_product(data: Product = Body(media_type=media_type, embed=True)):
        pass  # pragma: no cover
    
    
    @app.post("/shops")
    async def create_shop(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/build-organization/structuring-software-projects/groovy/aggregation/test-coverage/build.gradle

    plugins {
        id('com.example.report-aggregation')
    }
    
    dependencies {
        // Transitively collect coverage data from all features and their dependencies
        aggregate('com.example.myproduct.user-feature:table')
        aggregate('com.example.myproduct.admin-feature:config')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 272 bytes
    - Viewed (0)
  5. pkg/config/analysis/analyzers/testdata/virtualservice_overlappingmatches.yaml

    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: non-method-get
    spec:
      hosts:
      - sample.baz.svc.cluster.local
      http:
      - name: "send product to sample.foo"
        match:
        - uri:
            prefix: "/api/v1/product"
        - uri:
            prefix: "/api/v1/products"
          method:
            exact: GET
        route:
        - destination:
            host: sample.foo.svc.cluster.local
    ---
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/samples/templates/structuring-software-projects/admin-feature/config/src/main/kotlin/com/example/myproduct/admin/config/AdminController.kt

    package com.example.myproduct.admin.config
    
    import com.example.myproduct.admin.state.ConfigurationState
    
    object AdminController {
    
        fun update(versionRange: VersionRange) {
            ConfigurationState.rangeSetting.minVersion = versionRange.fromVersion
            ConfigurationState.rangeSetting.maxVersion = versionRange.toVersion
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 338 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/samples/build-organization/structuring-software-projects/groovy/server-application/app/build.gradle

    plugins {
        id('com.example.spring-boot-application')
    }
    
    group = "${group}.server-application"
    
    dependencies {
        implementation('com.example.myproduct.user-feature:table')
        implementation('com.example.myproduct.admin-feature:config')
    
        implementation('org.apache.juneau:juneau-marshall')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 300 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/samples/build-organization/structuring-software-projects/kotlin/server-application/app/build.gradle.kts

    plugins {
        id("com.example.spring-boot-application")
    }
    
    group = "${group}.server-application"
    
    dependencies {
        implementation("com.example.myproduct.user-feature:table")
        implementation("com.example.myproduct.admin-feature:config")
    
        implementation("org.apache.juneau:juneau-marshall")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 300 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/templates/structuring-software-projects/server-application/app/src/main/java/com/example/myproduct/server/MyProductController.java

    package com.example.myproduct.server;
    
    import com.example.myproduct.user.table.TableBuilder;
    import org.apache.juneau.html.HtmlSerializer;
    import org.apache.juneau.serializer.SerializeException;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    @RestController
    public class MyProductController {
    
        @RequestMapping("/")
        public String index() throws SerializeException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 533 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/templates/structuring-software-projects/server-application/app/src/main/java/com/example/myproduct/server/MyProductJsonController.java

    package com.example.myproduct.server;
    
    import com.example.myproduct.user.table.TableBuilder;
    
    import org.springframework.http.MediaType;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    import java.util.List;
    
    @RestController
    public class MyProductJsonController {
    
        @RequestMapping(value = "/json", produces = MediaType.APPLICATION_JSON_VALUE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 511 bytes
    - Viewed (0)
Back to top