productRecord.yaml 550 字节
version: v1
kind: HttpApi
metadata:
  service: productRecord
  path: /product-records
  endpoints: 
  - method: createProductRecord
    route:
      post: /  
  - method: updateProductRecord
    route:
      put: /{productRecordId}
  - method: getProductRecord
    route:
      get: /{productRecordId}
  - method: removeProductRecord
    route:
      delete: /{productRecordId}
  - method: listProductRecord
    route:
      get: /
    params:
      - name: offset
      - name: limit
  - method: approveProductRecord
    route:
      post: /approve