private void buildContext() { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}/persistedFaces/${persistedFaceId}").addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId).addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.DELETE); }
private void buildContext() { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}/persistedFaces/${persistedFaceId}").addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId).addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.setPath("face/v1.0/facelists/${faceListId}/persistedFaces/${persistedFaceId}").addPathVariable("faceListId", faceListId) .addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.DELETE); }
private void buildContext(String id) { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}") .addPathVariable("personGroupId", id).addPathVariable("personId", personId) .httpMethod(HttpMethod.DELETE); }
private void buildContext(String id) { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}") .addPathVariable("personGroupId", id).addPathVariable("personId", personId) .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}/persistedFaces/${persistedFaceId}") .addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId) .addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.PATCH); }
private void buildContext(String id) { workingContext.setPath("face/v1.0/persongroups/${id}").addPathVariable("id", id) .httpMethod(HttpMethod.DELETE); }
private void buildContext(String faceListId) { workingContext.setPath("face/v1.0/facelists/${faceListId}").addPathVariable("faceListId", faceListId) .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.setPath("face/v1.0/persongroups/${personGroupId}").addPathVariable("personGroupId", personGroupId) .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/train").addPathVariable("personGroupId", personGroupId) .httpMethod(HttpMethod.POST); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}").addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId).httpMethod(HttpMethod.PATCH); }
private void buildContext(String id) { workingContext.setPath("face/v1.0/facelists/${id}").addPathVariable("id", id) .httpMethod(HttpMethod.DELETE); }
private void buildContext(Object payload) { workingContext.addQueryParameter("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}/persistedFaces").addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId) .httpMethod(HttpMethod.POST); if (payload instanceof String) workingContext.addPayload("url", String.valueOf(payload)); if (payload instanceof InputStream) workingContext.addPayload(IMAGE_INPUT_STREAM_KEY, payload); }
private void buildContext(Object image) { workingContext.setPath("vision/v1.0/models/${models}/analyze") .httpMethod(HttpMethod.POST); if (Utils.isNotEmpty(models)) workingContext().addPathVariable("models", StringUtils.join(models, ',')); if (image instanceof String) workingContext.addPayload("url", String.valueOf(image)); if (image instanceof InputStream) workingContext.addPayload(IMAGE_INPUT_STREAM_KEY, image); }
private void buildContext(Object image) { workingContext.addQueryParameter("userData", userData) .setPath("face/v1.0/facelists/${faceListId}/persistedFaces").addPathVariable("faceListId", faceListId) .addQueryParameter("userData", userData) .httpMethod(HttpMethod.POST); if (isNotEmpty(targetFace)) workingContext.addQueryParameter("targetFace", targetFace); if (image instanceof String) workingContext.addPayload("url", String.valueOf(image)); if (image instanceof InputStream) workingContext.addPayload(IMAGE_INPUT_STREAM_KEY, image); }
private void buildContext(String personGroupId, String name, String userData) { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}/persons").addPathVariable("personGroupId", personGroupId) .httpMethod(HttpMethod.POST); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}").addPathVariable("personGroupId", personGroupId) .httpMethod(HttpMethod.PATCH); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${id}").addPathVariable("id", personGroupId) .httpMethod(HttpMethod.PUT); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/facelists/${faceListId}").addPathVariable("faceListId", faceListId) .httpMethod(HttpMethod.PUT); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/facelists/${faceListId}").addPathVariable("faceListId", faceListId) .httpMethod(HttpMethod.PATCH); }