Запит ініціює процес асинхронного створення ЕПЧ для раніше завантажених даних сесії.
URL-адреси запиту
https://local.cipher.kiev.ua:9091/api/v1/ticket/{uuid}/ts/creator
Метод
POST
Параметри запиту
uuid | String | Ідентифікатор сесії |
Налаштовувані заголовки запиту
Content-Type | text/plain |
Відповідь
Код відовіді | Content-type | Допустимі параметри | Приклад вмісту |
---|---|---|---|
200 | application/json | message | { |
503 | application/json | message | { |
400 | application/json | message | { "message" : "Сесія відсутня." } |
500 | application/json | message failureCause | { |
Параметри JSON об'єкта відповіді
Параметр | Тип данных | Описание |
---|---|---|
message | String | Описание результата проведения операции |
failureCause | String | Описание причины возникновения ошибки |
Пример кода на JavaScript + jQuery 2.2.4
$.ajax({ url: "https://local.cipher.kiev.ua:9091/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/ts/creator", type: "POST", dataType: "json", contentType: "text/plain" }).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; } })