users.yaml 876 字节
version: v1
kind: HttpApi
metadata:
  service: users
  path: /users
  endpoints:
    - method: createUsers
      route:
        post: /
    - method: updateUsers
      route:
        put: /{usersId}
    - method: getUsers
      route:
        get: /{usersId}
    - method: removeUsers
      route:
        delete: /{usersId}
    - method: listUsers
      route:
        post: /search
    - method: getUsersAccessMenus
      route:
        get: /{usersId}/access-menus
      params:
        - name: menuCategory
    - method: getUsersProfile
      route:
        get: /{usersId}/profile
    - method: batchAdd
      route:
        post: /batch-add
    - method: batchEnable
      route:
        post: /batch-enable
    - method: batchResetPassword
      route:
        post: /batch-reset-password
    - method: updateUsersBase
      route:
        put: /{usersId}/base-info