{
   "testCase":[
      {
         "init":{
            "scope":"apim:api_create"
         },
         "data":{
            "method":"POST",
            "url":"/api/am/publisher/v0.14//apis",
            "query-parameters":"",
            "request-headers":{
               "Authorization":"Bearer"
            },
            "request-payload":"{\r\n   \"name\": \"NewAPI\",\r\n   \"context\": \"\/test\",\r\n
            \"id\": \"70eff997-8f9a-46cc-b2d2-390225bd8935\",\r\n   \"status\": \"CREATED\",\r\n
            \"tags\": [],\r\n   \"transport\":    [\r\n      \"http\",\r\n      \"https\"\r\n   ],\r\n
            \"cacheTimeout\": 300,\r\n   \"description\": null,\r\n   \"provider\": \"admin\",\r\n
            \"version\": \"2\",\r\n   \"sequences\": [],\r\n   \"tiers\": [\"Unlimited\"],\r\n
            \"thumbnailUri\": null,\r\n   \"visibility\": \"PUBLIC\",\r\n   \"visibleRoles\": [],\r\n
            \"visibleTenants\": [],\r\n
            \"endpointConfig\":
            \"{\\\"production_endpoints\\\":{\\\"url\\\":\\\"http:\/\/maps.googleapis.com\/maps\/api\/geocode\/json?address=Colombo\\\",
            \\\"config\\\":null},\\\"implementation_status\\\":\\\"managed\\\",\\\"endpoint_type\\\":\\\"http\\\"}\",\r\n
            \"subscriptionAvailability\": \"current_tenant\",\r\n   \"subscriptionAvailableTenants\": [],\r\n
            \"destinationStatsEnabled\": \"Disabled\",\r\n   \"apiDefinition\":
            \"{\\\"paths\\\":{\\\"\\\\\/*\\\":{\\\"put\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},
            \\\"description\\\":\\\"Request Body\\\",\\\"name\\\":
            \\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],\\\"responses\\\":{\\\"200\\\":{}}},
            \\\"post\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",\\\"x-throttling-tier\\\":\\\"Unlimited\\\",
            \\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},\\\"description\\\":\\\"Request Body\\\",
            \\\"name\\\":\\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],
            \\\"responses\\\":{\\\"200\\\":{}}},\\\"get\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"responses\\\":{\\\"200\\\":{}}},
            \\\"delete\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"responses\\\":{\\\"200\\\":{}}},
            \\\"patch\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},
            \\\"description\\\":\\\"Request Body\\\",\\\"name\\\":\\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],
            \\\"responses\\\":{\\\"200\\\":{}}}}},\\\"swagger\\\":\\\"2.0\\\",
            \\\"info\\\":{\\\"title\\\":\\\"api1\\\",\\\"version\\\":\\\"1\\\"}}\",\r\n
            \"responseCaching\": \"Disabled\",\r\n   \"isDefaultVersion\": false,\r\n   \"businessInformation\":
            {\r\n      \"technicalOwner\": null,\r\n      \"technicalOwnerEmail\": null,\r\n
            \"businessOwner\": null,\r\n      \"businessOwnerEmail\": null\r\n   }\r\n}",
            "response-headers":"",
            "response-payload":""
         },
         "asserts": {
            "header-asserts": {
                "status-code": "201"
            },
            "body-asserts": []
         },
         "preserve-list":[
            {
                "attribute-name":"apiId",
                "response-location":"id"

            }
         ]
      }
      ,
      {
               "init":{
                  "scope":"apim:api_create"
               },
               "data":{
                  "method":"POST",
                  "url":"/api/am/publisher/v0.14//apis",
                  "query-parameters":"",
                  "request-headers":{
                     "Authorization":"Bearer"
                  },
                  "request-payload":"{\r\n   \"name\": \"NewAPI\",\r\n   \"context\": \"\/test1\",\r\n
                  \"id\": \"70eff997-8f9a-46cc-b2d2-390225bd8935\",\r\n   \"status\": \"CREATED\",\r\n
                  \"tags\": [],\r\n   \"transport\":    [\r\n      \"http\",\r\n      \"https\"\r\n   ],\r\n
                  \"cacheTimeout\": 300,\r\n   \"description\": null,\r\n   \"provider\": \"admin\",\r\n
                  \"version\": \"3\",\r\n   \"sequences\": [],\r\n   \"tiers\": [\"Unlimited\"],\r\n
                  \"thumbnailUri\": null,\r\n   \"visibility\": \"PUBLIC\",\r\n   \"visibleRoles\": [],\r\n
                  \"visibleTenants\": [],\r\n
                  \"endpointConfig\":
                  \"{\\\"production_endpoints\\\":{\\\"url\\\":\\\"http:\/\/maps.googleapis.com\/maps\/api\/geocode\/json?address=Colombo\\\",
                  \\\"config\\\":null},\\\"implementation_status\\\":\\\"managed\\\",\\\"endpoint_type\\\":\\\"http\\\"}\",\r\n
                  \"subscriptionAvailability\": \"current_tenant\",\r\n   \"subscriptionAvailableTenants\": [],\r\n
                  \"destinationStatsEnabled\": \"Disabled\",\r\n   \"apiDefinition\":
                  \"{\\\"paths\\\":{\\\"\\\\\/*\\\":{\\\"put\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
                  \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},
                  \\\"description\\\":\\\"Request Body\\\",\\\"name\\\":
                  \\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],\\\"responses\\\":{\\\"200\\\":{}}},
                  \\\"post\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",\\\"x-throttling-tier\\\":\\\"Unlimited\\\",
                  \\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},\\\"description\\\":\\\"Request Body\\\",
                  \\\"name\\\":\\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],
                  \\\"responses\\\":{\\\"200\\\":{}}},\\\"get\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
                  \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"responses\\\":{\\\"200\\\":{}}},
                  \\\"delete\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
                  \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"responses\\\":{\\\"200\\\":{}}},
                  \\\"patch\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
                  \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},
                  \\\"description\\\":\\\"Request Body\\\",\\\"name\\\":\\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],
                  \\\"responses\\\":{\\\"200\\\":{}}}}},\\\"swagger\\\":\\\"2.0\\\",
                  \\\"info\\\":{\\\"title\\\":\\\"api1\\\",\\\"version\\\":\\\"1\\\"}}\",\r\n
                  \"responseCaching\": \"Disabled\",\r\n   \"isDefaultVersion\": false,\r\n   \"businessInformation\":
                  {\r\n      \"technicalOwner\": null,\r\n      \"technicalOwnerEmail\": null,\r\n
                  \"businessOwner\": null,\r\n      \"businessOwnerEmail\": null\r\n   }\r\n}",
                  "response-headers":"",
                  "response-payload":""
               },
               "asserts": {
                  "header-asserts": {
                     "status-code": "201"
                  },
                  "body-asserts": []
               },
               "preserve-list":[
                  {
                     "attribute-name":"apiId",
                     "response-location":"id"

                  }
               ]
      }
      ,
      {
         "init":{
            "scope":"apim:api_create"
         },
         "data":{
            "method":"PUT",
            "url":"/api/am/publisher/v0.14//apis/{apiId}",
            "query-parameters":"",
            "request-headers":{
               "Authorization":"Bearer"
            },
            "request-payload":"{\r\n   \"name\": \"NewAPI\",\r\n   \"context\": \"\/test\",\r\n
            \"id\": \"70eff997-8f9a-46cc-b2d2-390225bd8935\",\r\n   \"status\": \"CREATED\",\r\n
            \"tags\": [],\r\n   \"transport\":    [\r\n      \"http\",\r\n      \"https\"\r\n   ],\r\n
            \"cacheTimeout\": 300,\r\n   \"description\": null,\r\n   \"provider\": \"admin\",\r\n
            \"version\": \"2\",\r\n   \"sequences\": [],\r\n   \"tiers\": [\"Unlimited\"],\r\n
            \"thumbnailUri\": null,\r\n   \"visibility\": \"PUBLIC\",\r\n   \"visibleRoles\": [],\r\n
            \"visibleTenants\": [],\r\n
            \"endpointConfig\":
            \"{\\\"production_endpoints\\\":{\\\"url\\\":\\\"http:\/\/maps.googleapis.com\/maps\/api\/geocode\/json?address=Kandy\\\",
            \\\"config\\\":null},\\\"implementation_status\\\":\\\"managed\\\",\\\"endpoint_type\\\":\\\"http\\\"}\",\r\n
            \"subscriptionAvailability\": \"current_tenant\",\r\n   \"subscriptionAvailableTenants\": [],\r\n
            \"destinationStatsEnabled\": \"Disabled\",\r\n   \"apiDefinition\":
            \"{\\\"paths\\\":{\\\"\\\\\/*\\\":{\\\"put\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},
            \\\"description\\\":\\\"Request Body\\\",\\\"name\\\":
            \\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],\\\"responses\\\":{\\\"200\\\":{}}},
            \\\"post\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",\\\"x-throttling-tier\\\":\\\"Unlimited\\\",
            \\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},\\\"description\\\":\\\"Request Body\\\",
            \\\"name\\\":\\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],
            \\\"responses\\\":{\\\"200\\\":{}}},\\\"get\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"responses\\\":{\\\"200\\\":{}}},
            \\\"delete\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"responses\\\":{\\\"200\\\":{}}},
            \\\"patch\\\":{\\\"x-auth-type\\\":\\\"Application & Application User\\\",
            \\\"x-throttling-tier\\\":\\\"Unlimited\\\",\\\"parameters\\\":[{\\\"schema\\\":{\\\"type\\\":\\\"object\\\"},
            \\\"description\\\":\\\"Request Body\\\",\\\"name\\\":\\\"Payload\\\",\\\"required\\\":false,\\\"in\\\":\\\"body\\\"}],
            \\\"responses\\\":{\\\"200\\\":{}}}}},\\\"swagger\\\":\\\"2.0\\\",
            \\\"info\\\":{\\\"title\\\":\\\"api1\\\",\\\"version\\\":\\\"1\\\"}}\",\r\n
            \"responseCaching\": \"Disabled\",\r\n   \"isDefaultVersion\": false,\r\n   \"businessInformation\":
            {\r\n      \"technicalOwner\": null,\r\n      \"technicalOwnerEmail\": null,\r\n
            \"businessOwner\": null,\r\n      \"businessOwnerEmail\": null\r\n   }\r\n}",
            "response-headers":"",
            "response-payload":""
         },
         "asserts": {
            "header-asserts": {
                "status-code": "200"
            },
            "body-asserts": []
         }
      }
      ,
      {
         "init":{
            "scope":"apim:api_view"
         },
         "data":{
            "method":"GET",
            "url":"/api/am/publisher/v0.14//apis",
            "query-parameters":"",
            "request-headers":{
               "Authorization":"Bearer"
            },
            "request-payload":"",
            "response-headers":"",
            "response-payload":""
         },
         "asserts": {
            "header-asserts": {
                "status-code": "200"
            },
            "body-asserts": []
         }
      }
      ,
      {
         "init":{
            "scope":"apim:api_create"
         },
         "data":{
            "method":"DELETE",
            "url":"/api/am/publisher/v0.14//apis/{apiId}",
            "query-parameters":"",
            "request-headers":{
               "Authorization":"Bearer"
            },
            "request-payload":"",
            "response-headers":"",
            "response-payload":""
         },
         "asserts": {
            "header-asserts": {
                "status-code": "200"
            },
            "body-asserts": []
         }
      }
   ]
}
