task.yaml 1.4 KB
version: v1
kind: HttpApi
metadata:
  service: task
  path: /tasks
  endpoints:
  - method: rejectTaskReceiver
    route:
      post: /{taskId}/reject-task-receiver   
  - method: confirmRobTask
    route:
      post: /{taskId}/confirm-rob-task        
  - method: robTask
    route:
      post: /{taskId}/rob  
  - method: bidTask
    route:
      post: /{taskId}/bid 
  - method: applyCompleteTask
    route:
      post: /{taskId}/apply-complete   
  - method: releaseTask
    route:
      post: /{taskId}/release
  - method: chooseSuccessfulBidder
    route:
      post: /{taskId}/choose-successful-bidder  
  - method: offTask
    route:
      post: /{taskId}/dff 
  - method: acceptanceTask
    route:
      post: /{taskId}/acceptance  
  - method: searchTask
    route:
      post: /search   
  - method: createTask
    route:
      post: /      
  - method: updateTask
    route:
      put: /{taskId}
  - method: getTask
    route:
      get: /{taskId}         
  - method: removeTask
    route:
      delete: /{taskId}  
  - method: listTask
    route:
      get: /
    params:    
      - name: companyId
      - name: sponsor
      - name: taskContentMatch
      - name: taskType
      - name: taskStatus
      - name: customerValue
      - name: taskNature
      - name: isRewardTake
      - name: bidTimeMatch
      - name: receiver
      - name: participator
      - name: offset
      - name: limit