org.yaml 471 字节
version: v1
kind: HttpApi
metadata:
  service: org
  path: /orgs
  endpoints: 
  - method: createOrg
    route:
      post: /  
  - method: updateOrg
    route:
      put: /{orgId}
  - method: getOrg
    route:
      get: /{orgId}
  - method: removeOrg
    route:
      delete: /{orgId}
  - method: listOrg
    route:
      post: /search
  - method: getOrgSubDepartment
    route:
      get: /{orgId}/sub-department
    params:
      - name: orgId
      - name: childFlag