如何为独立的Wiremock启用JSON API请求的HTTPS

时间:2019-03-30 16:42:28

标签: json localhost wiremock

我在服务器中使用(本地主机)(端口-8080)在服务器中配置了独立的有线模拟(2.21.0),同时尝试在本地访问URL工作正常,但是在配置端点URL时出现错误。如何公开访问本地主机URL?我是新来的。

{
 "id" : "76ada7b0-49ae-4229-91c4-396a36f18e09",
  "request" : {
        "method" : "GET",
        "url" : "/api/mytest"
    },

"response" : {
        "status": 200,
        "headers" : {
           "Content-Type" : "application/json",
           "CorrelationId_T" : "1234321098890",
            "ActivityName_T" : "VoucherRedeem",
            "MsgType_T" : "RESPONSE",
            "Priority_T": "1",
             "Source" : "CRM",
             "MessageId" : "subscriberId",
              "Timestamp" : "2018-01-20T13:27:48.088Z",
"Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding" : "gzip, deflate",
"Accept-Language" : "en-US,en;q=0.9",
"Cache-Control" : "no-cache",
"Host" : "localhost:8888",
"Pragma" : "no-cache",
"Proxy-Connection" : "keep-alive",
"Upgrade-Insecure-Requests" : "1",
"User-Agent" : "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" }

},
"uuid" : "76ada7b0-49ae-4229-91c4-396a36f18e09"

    }

{
 "id" : "76ada7b0-49ae-4229-91c4-396a36f18e09",
  "request" : {
        "method" : "GET",
        "url" : "/api/mytest"
    },

"response" : {
        "status": 200,
        "headers" : {
           "Content-Type" : "application/json",
           "CorrelationId_T" : "1234321098890",
            "ActivityName_T" : "VoucherRedeem",
            "MsgType_T" : "RESPONSE",
            "Priority_T": "1",
             "Source" : "CRM",
             "MessageId" : "subscriberId",
              "Timestamp" : "2018-01-20T13:27:48.088Z",
"Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding" : "gzip, deflate",
"Accept-Language" : "en-US,en;q=0.9",
"Cache-Control" : "no-cache",
"Host" : "localhost:8888",
"Pragma" : "no-cache",
"Proxy-Connection" : "keep-alive",
"Upgrade-Insecure-Requests" : "1",
"User-Agent" : "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" }

},
"uuid" : "76ada7b0-49ae-4229-91c4-396a36f18e09"

    }

0 个答案:

没有答案