smolnar82 commented on code in PR #799:
URL: https://github.com/apache/knox/pull/799#discussion_r1350062612


##########
gateway-service-knoxtoken/src/main/java/org/apache/knox/gateway/service/knoxtoken/TokenResource.java:
##########
@@ -559,6 +569,22 @@ public Response renew(String token) {
     return resp;
   }
 
+  @DELETE
+  @Path(BATCH_REVOKE_PATH)
+  @Produces({APPLICATION_JSON})
+  public Response revokeTokens(String tokenIds) {
+    final List<String> ids = GSON.fromJson(tokenIds, List.class);

Review Comment:
   I thought the same way, however, I could not make it work this way:
   ```
     @DELETE
     @Path(BATCH_REVOKE_PATH)
     @Produces({APPLICATION_JSON})
     @Consumes({APPLICATION_JSON})
     public Response revokeTokens(List<String> tokenIds) {
     }
   ```
   I always received 415 (Unsupported Media Type) every time no matter what I 
tried (added the required headers in the `curl` command).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to