?????? ?????? ??? ????????? ?????????? ? ?????/(?)???, ?????? ? ???????? ???????????? ??????.
URL-????? ???????
https://local.cipher.kiev.ua:9090/api/v1/certificateAuthority/supported
?????
GET
????????? ???????
???????????
????????????? ????????? ???????
???????????
?????
??? ?????? | Content-type | ?????????? ????????? | ?????? ??????????? |
---|---|---|---|
200 | application/json | ca | { |
503 | application/json | message | { |
????????? JSON ??????? ??????
???????? | ??? ?????? | ???????? |
---|---|---|
message | String | ???????? ?????????? ?????????? ???????? |
ca | Array | ?????? ?????????????? ???????? ?????/(?)??? |
???? ???????? ??????? ca
???? | ??? ?????? | ???????? |
---|---|---|
name | String | ???????? ?????/(?)??? ?? ?????????? ?????. ???????? ?? ??????????????. |
id | String | ????????????? ?????/(?)???, ??????? ???????????? ??? ?????? ?? ?????? ?????/(?)??? ?????? ??????? |
?????? ???? ?? JavaScript + jQuery 2.2.4
$.ajax({ url: "https://local.cipher.kiev.ua:9090/api/v1/certificateAuthority/supported", type: "GET", dataType: "json", cache: false }).done(function (jsonResponse, textStatus, xhr) { ca = jsonResponse.ca; }).fail(function (xhr) { try { var jsonResponse = JSON.parse(xhr.responseText); message = jsonResponse.message; } catch (e) { message = (xhr.responseText == undefined) ? "?????? ??? ????????? ?????? ?????????????? ?????/(?)???." : xhr.responseText; } })