Skip to content

Commit 99ede29

Browse files
committed
updated /ask route to deal with gaps, made previous /ask /askold
1 parent d67bda1 commit 99ede29

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

smart-connector-rest-server/src/main/java/eu/knowledge/engine/rest/api/impl/ProactiveApiServiceImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ public class ProactiveApiServiceImpl {
4949
private RestKnowledgeBaseManager manager = RestKnowledgeBaseManager.newInstance();
5050

5151
@POST
52-
@Path("/askwithgaps")
52+
@Path("/ask")
5353
@Consumes({ "application/json; charset=UTF-8" })
5454
@Produces({ "application/json; charset=UTF-8", "text/plain; charset=UTF-8" })
55-
public void scAskWithGapsPost(
55+
public void scAskPost(
5656
@Parameter(description = "The Knowledge Base Id for which to execute the ask.", required = true) @HeaderParam("Knowledge-Base-Id") String knowledgeBaseId,
5757
@Parameter(description = "The Ask Knowledge Interaction Id to execute.", required = true) @HeaderParam("Knowledge-Interaction-Id") String knowledgeInteractionId,
5858

5959
@Parameter(description = "The keys bindings are allowed to be incomplete, but they must correspond to the binding keys that were defined in the knowledge interaction.", required = true) @NotNull @Valid JsonNode recipientAndBindingSet,
6060
@Suspended final AsyncResponse asyncResponse, @Context SecurityContext securityContext) {
6161

62-
LOG.debug("scAskWithGapsPost called for KB {} and KI {} - {}", knowledgeBaseId, knowledgeInteractionId,
62+
LOG.debug("scAskPost called for KB {} and KI {} - {}", knowledgeBaseId, knowledgeInteractionId,
6363
recipientAndBindingSet);
6464

6565
RecipientAndBindingSet recipientAndBindingSetObject;
@@ -184,10 +184,10 @@ private List<List<String>> knowledgeGapsToList(Set<KnowledgeGap> knowledgeGaps)
184184
}
185185

186186
@POST
187-
@Path("/ask")
187+
@Path("/askold")
188188
@Consumes({ "application/json; charset=UTF-8" })
189189
@Produces({ "application/json; charset=UTF-8", "text/plain; charset=UTF-8" })
190-
public void scAskPost(
190+
public void scAskOldPost(
191191
@Parameter(description = "The Knowledge Base Id for which to execute the ask.", required = true) @HeaderParam("Knowledge-Base-Id") String knowledgeBaseId,
192192
@Parameter(description = "The Ask Knowledge Interaction Id to execute.", required = true) @HeaderParam("Knowledge-Interaction-Id") String knowledgeInteractionId,
193193

0 commit comments

Comments
 (0)