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 @@
}
}
},
"/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": {
"get": {
"operationId": "RestController_getCredentialFormatDataById",
......@@ -1364,12 +1418,20 @@
},
"tag": {
"type": "string"
},
"revocationRegistry": {
"type": "object"
},
"revocationStatusList": {
"type": "object"
}
},
"required": [
"schemaId",
"issuerId",
"tag"
"tag",
"revocationRegistry",
"revocationStatusList"
]
},
"CreateCredentialDefinitionRequestDto": {
......@@ -1420,11 +1482,19 @@
"items": {
"$ref": "#/components/schemas/OfferCredentialAttributes"
}
},
"revocationRegistryDefinitionId": {
"type": "string"
},
"revocationRegistryIndex": {
"type": "number"
}
},
"required": [
"credentialDefinitionId",
"attributes"
"attributes",
"revocationRegistryDefinitionId",
"revocationRegistryIndex"
]
},
"CredentialRecordDto": {
......@@ -1669,6 +1739,28 @@
"verifiableCredential"
]
},
"RevocationStatusResponseDto": {
"type": "object",
"properties": {
"revocationRegistryId": {
"type": "string"
},
"valid": {
"type": "boolean"
},
"revocationId": {
"type": "number"
},
"message": {
"type": "string"
}
},
"required": [
"revocationRegistryId",
"valid",
"revocationId"
]
},
"CredentialFormatDataDto": {
"type": "object",
"properties": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment