@Override public LRSResponse updateAgentProfile(AgentProfileDocument profile) { HashMap<String, String> queryParams = new HashMap<String, String>(); queryParams.put("profileId", profile.getId()); queryParams.put("agent", profile.getAgent().toJSON(this.getVersion(), this.usePrettyJSON())); return updateDocument("agents/profile", queryParams, profile); }
@Override public LRSResponse deleteAgentProfile(AgentProfileDocument profile) { HashMap<String, String> queryParams = new HashMap<String, String>(); queryParams.put("profileId", profile.getId()); queryParams.put("agent", profile.getAgent().toJSON(this.getVersion(), this.usePrettyJSON())); // TODO: need to pass Etag? return deleteDocument("agents/profile", queryParams); }