Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for product_id (0.5 sec)

  1. samples/bookinfo/src/productpage/productpage.py

    
    @app.route('/api/v1/products/<product_id>')
    def productRoute(product_id):
        headers = getForwardHeaders(request)
        status, details = getProductDetails(product_id, headers)
        return json.dumps(details), status, {'Content-Type': 'application/json'}
    
    
    @app.route('/api/v1/products/<product_id>/reviews')
    def reviewsRoute(product_id):
        headers = getForwardHeaders(request)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. samples/bookinfo/src/productpage/tests/unit/test_productpage.py

                'x-b3-sampled': '1',
                'sw8': '40c7fdf104e3de67'
            }
            m.get("http://reviews:9080/reviews/%d" % product_id, text='{}',
                  request_headers=expected_headers)
    
            uri = "/api/v1/products/%d/reviews" % product_id
            headers = {
                'x-request-id': '34eeb41d-d267-9e49-8b84-dde403fc5b72',
                'x-b3-traceid': '80f198ee56343ba864fe8b2a57d3eff7',
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 23:56:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. schema/schema_test.go

    	if err != nil {
    		t.Fatalf("failed to parse product struct with composite primary key, got error %v", err)
    	}
    
    	prioritizedPrimaryField := schema.Field{
    		Name: "ProductID", DBName: "product_id", BindNames: []string{"ProductID"}, DataType: schema.Uint, PrimaryKey: true, Size: 64, HasDefaultValue: true, AutoIncrement: true, TagSettings: map[string]string{"PRIMARYKEY": "PRIMARYKEY", "AUTOINCREMENT": "AUTOINCREMENT"},
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:31:23 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  4. tests/associations_test.go

    	}
    
    	if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    		t.Errorf("Failed to query saved coupon")
    	}
    
    	if DB.First(&CouponProduct{}, "coupon_id = ? AND product_id = ?", coupon.ID, "full-save-association-product1").Error != nil {
    		t.Errorf("Failed to query saved association")
    	}
    
    	orders := []Order{{Num: "order1", Coupon: coupon}, {Num: "order2", Coupon: coupon}}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  5. samples/bookinfo/src/ratings/ratings.js

        }
    })
    
    function putLocalReviews (productId, ratings) {
      userAddedRatings[productId] = {
        id: productId,
        ratings: ratings
      }
      return getLocalReviews(productId)
    }
    
    function getLocalReviewsSuccessful(res, productId) {
      res.writeHead(200, {'Content-type': 'application/json'})
      res.end(JSON.stringify(getLocalReviews(productId)))
    }
    
    function getLocalReviewsServiceUnavailable(res) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Sep 02 00:29:57 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  6. samples/bookinfo/src/reviews/reviews-application/src/main/java/application/rest/LibertyRestEndpoint.java

        }
    
        @GET
        @Path("/reviews/{productId}")
        public Response bookReviewsById(@PathParam("productId") int productId, @Context HttpHeaders requestHeaders) {
          int starsReviewer1 = -1;
          int starsReviewer2 = -1;
    
          if (ratings_enabled) {
            JsonObject ratingsResponse = getRatings(Integer.toString(productId), requestHeaders);
            if (ratingsResponse != null) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 15 22:25:32 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  7. cluster/images/etcd/cloudbuild.yaml

        entrypoint: 'bash'
        dir: ./cluster/images/etcd
        env:
          - DOCKER_CLI_EXPERIMENTAL=enabled
          - REGISTRY=gcr.io/$PROJECT_ID
          - PUSH_REGISTRY=gcr.io/$PROJECT_ID
          - IMAGE=gcr.io/$PROJECT_ID/etcd
          - BUILD_IMAGE=debian-build
          - TMPDIR=/workspace
          - HOME=/root  # for docker buildx
        args:
          - '-c'
          - |
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 20:51:40 UTC 2024
    - 929 bytes
    - Viewed (0)
  8. build/pause/cloudbuild.yaml

        entrypoint: 'bash'
        dir: ./build/pause
        env:
          - DOCKER_CLI_EXPERIMENTAL=enabled
          - REGISTRY=gcr.io/$PROJECT_ID
          - IMAGE=gcr.io/$PROJECT_ID/pause
          - HOME=/root
        args:
          - '-c'
          - |
            gcloud auth configure-docker \
            && docker buildx create --name img-builder --use \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 20:51:40 UTC 2024
    - 655 bytes
    - Viewed (0)
  9. tests/integration/GKE.md

      --zone ${ZONE} \
      --project ${PROJECT_ID} \
      --cluster-version ${CLUSTER_VERSION} \
      --machine-type ${MACHINE_TYPE} \
      --num-nodes ${NUM_NODES} \
      --enable-kubernetes-alpha \
      --no-enable-legacy-authorization
     ```
    
    * `CLUSTER_NAME`: Whatever suits your fancy, 'istio-e2e' is a good choice.
    * `ZONE`: 'us-central1-f' is a good value to use.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 20 23:19:43 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  10. common/scripts/setup_env.sh

        TARGET_OS=darwin
        readlink_flags=""
    else
        echo "This system's OS, $LOCAL_OS, isn't supported"
        exit 1
    fi
    
    # Build image to use
    TOOLS_REGISTRY_PROVIDER=${TOOLS_REGISTRY_PROVIDER:-gcr.io}
    PROJECT_ID=${PROJECT_ID:-istio-testing}
    if [[ "${IMAGE_VERSION:-}" == "" ]]; then
      IMAGE_VERSION=master-89ff97db972e1ec7d61a7831bf9408f509e17d73
    fi
    if [[ "${IMAGE_NAME:-}" == "" ]]; then
      IMAGE_NAME=build-tools
    fi
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top