Skip to content
Snippets Groups Projects
Commit d8a573b0 authored by Boyan Tsolov's avatar Boyan Tsolov
Browse files

chore: update swagger

parent 936ca40d
No related branches found
No related tags found
1 merge request!75feat: credential revocation
...@@ -637,6 +637,60 @@ ...@@ -637,6 +637,60 @@
} }
} }
}, },
"/api/v1/credentials/{id}/status": {
"get": {
"operationId": "RestController_getCredentialStatusById",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RevocationStatusResponseDto"
}
}
}
}
}
}
},
"/api/v1/credentials/{id}/revoke": {
"get": {
"operationId": "RestController_revokeCredentialById",
"parameters": [
{
"name": "id",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RevocationStatusResponseDto"
}
}
}
}
}
}
},
"/api/v1/credentials/{id}/format-data": { "/api/v1/credentials/{id}/format-data": {
"get": { "get": {
"operationId": "RestController_getCredentialFormatDataById", "operationId": "RestController_getCredentialFormatDataById",
...@@ -1364,12 +1418,20 @@ ...@@ -1364,12 +1418,20 @@
}, },
"tag": { "tag": {
"type": "string" "type": "string"
},
"revocationRegistry": {
"type": "object"
},
"revocationStatusList": {
"type": "object"
} }
}, },
"required": [ "required": [
"schemaId", "schemaId",
"issuerId", "issuerId",
"tag" "tag",
"revocationRegistry",
"revocationStatusList"
] ]
}, },
"CreateCredentialDefinitionRequestDto": { "CreateCredentialDefinitionRequestDto": {
...@@ -1420,11 +1482,19 @@ ...@@ -1420,11 +1482,19 @@
"items": { "items": {
"$ref": "#/components/schemas/OfferCredentialAttributes" "$ref": "#/components/schemas/OfferCredentialAttributes"
} }
},
"revocationRegistryDefinitionId": {
"type": "string"
},
"revocationRegistryIndex": {
"type": "number"
} }
}, },
"required": [ "required": [
"credentialDefinitionId", "credentialDefinitionId",
"attributes" "attributes",
"revocationRegistryDefinitionId",
"revocationRegistryIndex"
] ]
}, },
"CredentialRecordDto": { "CredentialRecordDto": {
...@@ -1669,6 +1739,28 @@ ...@@ -1669,6 +1739,28 @@
"verifiableCredential" "verifiableCredential"
] ]
}, },
"RevocationStatusResponseDto": {
"type": "object",
"properties": {
"revocationRegistryId": {
"type": "string"
},
"valid": {
"type": "boolean"
},
"revocationId": {
"type": "number"
},
"message": {
"type": "string"
}
},
"required": [
"revocationRegistryId",
"valid",
"revocationId"
]
},
"CredentialFormatDataDto": { "CredentialFormatDataDto": {
"type": "object", "type": "object",
"properties": { "properties": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment