Skip to content

Commit

Permalink
fix swagger issue for revoked events.
Browse files Browse the repository at this point in the history
  • Loading branch information
dushaniw committed Feb 13, 2024
1 parent eeafeb0 commit 2abccc6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.wso2.carbon.apimgt.internal.service;

import org.wso2.carbon.apimgt.internal.service.dto.ErrorDTO;
import org.wso2.carbon.apimgt.internal.service.dto.RevokedEventsDTO;
import org.wso2.carbon.apimgt.internal.service.RevokedjwtApiService;
import org.wso2.carbon.apimgt.internal.service.impl.RevokedjwtApiServiceImpl;
import org.wso2.carbon.apimgt.api.APIManagementException;
Expand Down Expand Up @@ -39,9 +40,9 @@ public class RevokedjwtApi {


@Produces({ "application/json" })
@ApiOperation(value = "JTIs of revoked jwt tokens and application and subject entity revocation event data", notes = "This will provide access to - JTIs of directly revoked JWT tokens in database - consumer application information of revoked JWTs due to application change events - subject entity information of revoked JWTs due to user change events ", response = Object.class, tags={ })
@ApiOperation(value = "JTIs of revoked jwt tokens and application and subject entity revocation event data", notes = "This will provide access to - JTIs of directly revoked JWT tokens in database - consumer application information of revoked JWTs due to application change events - subject entity information of revoked JWTs due to user change events ", response = RevokedEventsDTO.class, tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "An object of revoke JWTs, revoked subject entities, revoked consumer keys", response = Object.class),
@ApiResponse(code = 200, message = "An object of revoke JWTs, revoked subject entities, revoked consumer keys", response = RevokedEventsDTO.class),
@ApiResponse(code = 200, message = "Unexpected error", response = ErrorDTO.class) })
public Response revokedjwtGet() throws APIManagementException{
return delegate.revokedjwtGet(securityContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.wso2.carbon.apimgt.api.APIManagementException;

import org.wso2.carbon.apimgt.internal.service.dto.ErrorDTO;
import org.wso2.carbon.apimgt.internal.service.dto.RevokedEventsDTO;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ paths:
200:
description: An object of revoke JWTs, revoked subject entities, revoked consumer keys
schema:
type: object
items:
$ref: '#/definitions/RevokedEvents'
$ref: '#/definitions/RevokedEvents'
default:
description: Unexpected error
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"200" : {
"description" : "An object of revoke JWTs, revoked subject entities, revoked consumer keys",
"schema" : {
"type" : "object"
"$ref" : "#/definitions/RevokedEvents"
}
},
"default" : {
Expand Down Expand Up @@ -1345,8 +1345,8 @@
"type" : "string",
"example" : "EXCHANGED",
"description" : "The type of the tokens to be used (exchanged or without exchanged). Accepted values are EXCHANGED, DIRECT or BOTH.",
"enum" : [ "EXCHANGED", "DIRECT", "BOTH" ],
"default" : "DIRECT"
"default" : "DIRECT",
"enum" : [ "EXCHANGED", "DIRECT", "BOTH" ]
}
}
},
Expand Down

0 comments on commit 2abccc6

Please sign in to comment.