org.yaml 628 字节
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:
      get: /
    params:
      - name: offset
      - name: limit
      - name: companyId
      - name: orgCode
      - name: depName
      - name: parentId
      - name: isOrg
  - method: getOrgSubDepartment
    route:
      get: /{orgId}/sub-department
    params:
      - name: orgId
      - name: childFlag