Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,067 for productId (0.16 sec)

  1. 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)
  2. 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)
  3. schema/schema_test.go

    	}
    
    	product, err := schema.Parse(&Product{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse product struct with composite primary key, got error %v", err)
    	}
    
    	prioritizedPrimaryField := schema.Field{
    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. utils/tests/models.go

    	AmountOff        uint32           `gorm:"column:amount_off"`
    	PercentOff       float32          `gorm:"column:percent_off"`
    }
    
    type CouponProduct struct {
    	CouponId  int    `gorm:"primarykey;size:255"`
    	ProductId string `gorm:"primarykey;size:255"`
    	Desc      string
    }
    
    type Order struct {
    	gorm.Model
    	Num      string
    	Coupon   *Coupon
    	CouponID string
    }
    
    type Parent struct {
    	gorm.Model
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. tests/associations_test.go

    		t.Fatalf("Should not find deleted profile")
    	}
    }
    
    func TestFullSaveAssociations(t *testing.T) {
    	coupon := &Coupon{
    		AppliesToProduct: []*CouponProduct{
    			{ProductId: "full-save-association-product1"},
    		},
    		AmountOff:  10,
    		PercentOff: 0.0,
    	}
    
    	err := DB.
    		Session(&gorm.Session{FullSaveAssociations: true}).
    		Create(coupon).Error
    	if err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  6. tests/create_test.go

    		t.Fatalf("first or create rows affect err:%v rows:%d", res.Error, res.RowsAffected)
    	}
    }
    
    func TestCreateWithAutoIncrementCompositeKey(t *testing.T) {
    	type CompositeKeyProduct struct {
    		ProductID    int `gorm:"primaryKey;autoIncrement:true;"` // primary key
    		LanguageCode int `gorm:"primaryKey;"`                    // primary key
    		Code         string
    		Name         string
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  7. tests/hooks_test.go

    	DB.Model(&product).Updates(Product3{Code: "L1214"})
    	if product.Price != 270 || product.Code != "L1214" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    	DB.Model(&product).Select("Name", "Code", "Price").Updates(Product3{Name: "Product New4", Code: ""})
    	if product.Name != "Product New4" || product.Price != 320 || product.Code != "" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/swiftpm/Product.java

    package org.gradle.swiftpm;
    
    import org.gradle.api.Named;
    import org.gradle.internal.HasInternalProtocol;
    
    /**
     * A product in a Swift Package Manager package.
     *
     * @since 4.6
     */
    @HasInternalProtocol
    public interface Product extends Named {
        /**
         * Returns the name of this product.
         */
        @Override
        String getName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 955 bytes
    - Viewed (0)
  9. samples/bookinfo/swagger.yaml

    basePath: "/api/v1"
    tags:
    - name: "product"
      description: "Information about a product (in this case a book)"
    - name: "review"
      description: "Review information for a product"
    - name: "rating"
      description: "Rating information for a product"
    externalDocs:
      description: "Learn more about the Istio BookInfo application"
      url: "https://istio.io/docs/samples/bookinfo.html"
    paths:
      /products:
        get:
          tags:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 17:00:23 UTC 2017
    - 6.2K bytes
    - Viewed (0)
  10. pkg/config/analysis/analyzers/testdata/virtualservice_overlappingmatches.yaml

    spec:
      hosts:
      - sample.baz.svc.cluster.local
      http:
      - name: "send product to sample.foo"
        match:
        - uri:
            prefix: "/api/v1/product"
          method:
            exact: GET
        route:
        - destination:
            host: sample.foo.svc.cluster.local
      - name: "send products to sample.bar"
        match:
        - uri:
            prefix: "/api/v1/products"
          method:
            exact: GET
        route:
        - destination:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 2.4K bytes
    - Viewed (0)
Back to top