Skip to content

Commit 3afb15a

Browse files
authored
fix: rename the HTTP request parameter statusTimestampAfter (#641)
Signed-off-by: Jeff Mesnil <jmesnil@ibm.com>
1 parent 1ad2dc1 commit 3afb15a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

reference/rest/src/main/java/io/a2a/server/rest/quarkus/A2AServerRoutes.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class A2AServerRoutes {
6767
private static final String HISTORY_LENGTH_PARAM = "historyLength";
6868
private static final String PAGE_SIZE_PARAM = "pageSize";
6969
private static final String PAGE_TOKEN_PARAM = "pageToken";
70+
private static final String STATUS_TIMESTAMP_AFTER = "statusTimestampAfter";
7071

7172
@Inject
7273
RestHandler jsonRestHandler;
@@ -139,7 +140,7 @@ public void listTasks(RoutingContext rc) {
139140
String pageSizeStr = rc.request().params().get(PAGE_SIZE_PARAM);
140141
String pageToken = rc.request().params().get(PAGE_TOKEN_PARAM);
141142
String historyLengthStr = rc.request().params().get(HISTORY_LENGTH_PARAM);
142-
String lastUpdatedAfter = rc.request().params().get("lastUpdatedAfter");
143+
String statusTimestampAfter = rc.request().params().get(STATUS_TIMESTAMP_AFTER);
143144
String includeArtifactsStr = rc.request().params().get("includeArtifacts");
144145

145146
// Parse optional parameters
@@ -159,7 +160,7 @@ public void listTasks(RoutingContext rc) {
159160
}
160161

161162
response = jsonRestHandler.listTasks(contextId, statusStr, pageSize, pageToken,
162-
historyLength, lastUpdatedAfter, includeArtifacts, extractTenant(rc), context);
163+
historyLength, statusTimestampAfter, includeArtifacts, extractTenant(rc), context);
163164
} catch (NumberFormatException e) {
164165
response = jsonRestHandler.createErrorResponse(new InvalidParamsError("Invalid number format in parameters"));
165166
} catch (IllegalArgumentException e) {

0 commit comments

Comments
 (0)