apiVersion: capabilities.3scale.net/v1beta1
kind: Product
metadata:
  annotations:
    insecure_skip_verify: 'true'
  name: test2
  namespace: 3scale-one
spec:
  metrics:
    getmetric:
      friendlyName: get_metrics
      unit: hit
    hits2:
      description: Number of API hits
      friendlyName: Hits
      unit: hit
  deployment:
    apicastHosted:
      authentication:
        userkey:
          authUserKey: token
          credentials: query
            #backendUsages:
            #  backendmkudleupstremfievbpmf7adi0g:
            #    path: /
  mappingRules:
    - httpMethod: GET
      increment: 1
      last: false
      metricMethodRef: hits2
      pattern: /
    - httpMethod: GET
      increment: 1
      metricMethodRef: getmetric
      pattern: /
  name: test2
  applicationPlans:
    AppPlanTest:
      costMonth: '0.00'
      published: true
      setupFee: '0.00'
