????????????? ????????? ???????? ???????? (????????) ?? (???), ??????? ???????????? ? ????????? ???????????? ??????.
???????? ????????? ?????????, ??????? ????????? ? ????????? ?? ? ???:
https://local.cipher.kiev.ua:9090/api/v1/ticket/{uuid}/option
PUT
uuid | String | ????????????? ?????? |
Content-Type | application/json |
??? | ??? | ???????? | ?????????? ???????? | |
---|---|---|---|---|
signatureType | String | ??? ?? | attached - ?????????? ??, ?? ???????? ?????? ? ???????????? ??????? * detached - ???????????? ??, ?? ???????? ???????? ?? ??????????? ?????? | |
embedSignatureTs | String | ??????? ????????? ??????????? ????? ??????? ??????? | true - ?????????? ??????????? ????? ??????? ???????
| |
embedDataTs | String | ??????? ????????? ??????????? ????? ??????? ?????? | true - ?????????? ??????????? ????? ??????? ?????
| |
embedCertificateType | String | ??????? ????????? ???????????? ?????????? ? ????????? | signerCert - ????????? ?????? ?????????? ??????????
| |
signatureTsVerifyOption | String | ????? ???????? ??????????? ????? ??????? ??????? | * ignore - ???????????? ??????????? ????? ??????? | |
dataTsVerifyOption | String | ????? ???????? ??????????? ????? ??????? ?????? | * ignore - ???????????? ??????????? ????? ??????? verifyIfPresent - ????????? ??????????? ????? ???????, ???? ??? ???????????? verifyOrFailIfNotPresent - ????????? ??????????? ????? ??????? ? ?????????? ??????, ???? ??? ??????????? | |
tsAdditionalVerifying | String | ??????? ?????????? ?????????????? ???????? ??????????? ????? ??????? | true - ????????? ?????????????? ???????? ??????????? ????? ??????? ??????? ? ?????? ??? ???????? ?? ??? ?????????????? ?????????????? ?????????? ? ?????? * false - ?? ????????? ?????????????? ???????? ??????????? ????? ??????? ??? ???????? ?? | |
dataToSignQualifier | String | ????????? ??????, ??????? ?????????? ????????? | * notSignedBefore - ?????? ?? ???????? ????? ????????? ??????? alreadySigned - ?????? ??? ???????? ???????, ??? ?????????? ????? ????? ??????????? ????? ????????????? ??????? | |
duplicateSign | String | ??????? ??????????? ?????????? ????????? ????????? ??? ????? ? ??? ?? ??????????? | true - ????????? ????? ???????, ???? ???? ???????? ??? ??? ???????? ??????????? | |
caId | String | ????????????? ?????/(?)???, ??????? ????? ?????????? ????? ?? ????????? ??????????. | ?????????????? ?????????????? ???????? ?????/(?)??? ?????????? ?????????????? ???????? ? ??????? ??????? ????????? ?????? ?????????????? ?????/(?)??? | |
cadesType | String | ?????? ?????????????? ??????????? ??????? ????????? CAdES | undefined - ???????? cadesType ?? ??????????? ??? ???????? ??????????? ???????
| |
nokkCompatible | String | ??????? ??????????????? ??????????? ???????, ????????? ?????????? ???????? ???? | true - ?????????, ??? ??????? ??????? ?????????? ???? ? ????????????? ???????????? ? ASN.1 OCTET STRING * false - ??????????? ??????? ????????????? ??????????? ?????????? |
* - ???????? ?? ?????????
??? ?????? | Content-type | ?????????? ????????? | ?????? ??????????? |
---|---|---|---|
200 | application/json | message | { |
503 | application/json | message | { |
400 | application/json | message | { "message" : "?????? ???????????." } |
???????? | ??? ?????? | ???????? |
---|---|---|
message | String | ???????? ?????????? ?????????? ???????? |
settedOptions | Object | ????????? ? ?? ????????, ??????? ???? ??????????? ????? ?????????? ??????? |
var selectedOptions = { signatureType: "detached", embedCertificateType: "nothing", embedSignatureTs: "false", embedDataTs: "false", signatureTsVerifyOption: "ignore", dataTsVerifyOption: "ignore" }; $.ajax({ url: "https://local.cipher.kiev.ua:9090/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/option", type: "PUT", dataType: "json", contentType: "application/json", data: JSON.stringify(selectedOptions) }).done(function (jsonResponse, textStatus, xhr) { message = jsonResponse.message; settedOptions = jsonResponse.settedOptions; }).fail(function (xhr) { try { var jsonResponse = JSON.parse(xhr.responseText); message = jsonResponse.message; } catch (e) { message = (xhr.responseText == undefined) ? "?????? ??? ????????? ???????? ??????." : xhr.responseText; } }) |