...
URL-адрес запроса
https://crypto.ccslocal.cipher.kiev.ua:90939091/api/v1/ticket/{uuid}/encryptor/certificates
...
Code Block | ||
---|---|---|
| ||
var data = { recipientCertificates: ["CeRtIfICaTe DaTa In BaSe64", "CeRtIfICaTe DaTa In BaSe64"] } $.ajax({ url: "https://crypto.ccslocal.cipher.kiev.ua:90939091/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/encryptor/certificates", type: "POST", dataType: "json", contentType: "application/json", data: JSON.stringify(data) }).done(function (jsonResponse, textStatus, xhr) { message = jsonResponse.message; }).fail(function (xhr) { try { var jsonResponse = JSON.parse(xhr.responseText); message = jsonResponse.message; failureCause = jsonResponse.failureCause; } catch (e) { message = (xhr.responseText == undefined) ? "Ошибка при загрузке сертификатов получателей шифрованных данных." : xhr.responseText; } }) |
...