add web api for segmentation, support multiple method