Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL-адрес запроса

https://local.cipher.kiev.ua:9091localhost:9092/api/v1/ticket/{uuid}/ds/base64SignedData

...

Code Block
languagejs
$.ajax({
    url: "https://local.cipher.kiev.ua:9091localhost:9092/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/ds/base64SignedData",
    type: "GET",
    dataType: "json",
    cache: false
}).done(function (jsonResponse, textStatus, xhr) {
    dsData = jsonResponse.base64Data;
    message = "Подписанные данные успешно получены.";
}).fail(function (xhr) {
    try {
        var jsonResponse = JSON.parse(xhr.responseText);
        message = jsonResponse.message;
    } catch (e) {
        message = (xhr.responseText == undefined) ? "Ошибка при получении подписанных данных." : xhr.responseText;
    }
})

...