|
2044 | 2044 | } |
2045 | 2045 | }, |
2046 | 2046 | "response": [] |
| 2047 | + }, |
| 2048 | + { |
| 2049 | + "item": [ |
| 2050 | + { |
| 2051 | + "event": [ |
| 2052 | + { |
| 2053 | + "listen": "test", |
| 2054 | + "script": { |
| 2055 | + "exec": [ |
| 2056 | + "pm.test(\"Status code is 200\", () => {", |
| 2057 | + " pm.expect(pm.response.code).to.equal(200);", |
| 2058 | + "});", |
| 2059 | + "", |
| 2060 | + "const jsonData = pm.response.json();", |
| 2061 | + "pm.test(\"Response Body contains data field and status\", () => {", |
| 2062 | + " pm.expect(jsonData).to.have.property(\"data\");", |
| 2063 | + " pm.expect(jsonData.data.attributes).to.have.property(\"id\");", |
| 2064 | + "});" |
| 2065 | + ], |
| 2066 | + "packages": {}, |
| 2067 | + "requests": {}, |
| 2068 | + "type": "text/javascript" |
| 2069 | + } |
| 2070 | + } |
| 2071 | + ], |
| 2072 | + "name": "200 Get Management Information", |
| 2073 | + "request": { |
| 2074 | + "auth": { |
| 2075 | + "type": "noauth" |
| 2076 | + }, |
| 2077 | + "description": "Retrieve managaement information.", |
| 2078 | + "header": [ |
| 2079 | + { |
| 2080 | + "disabled": true, |
| 2081 | + "key": "Accept", |
| 2082 | + "type": "default", |
| 2083 | + "value": "application/vnd.api+json" |
| 2084 | + }, |
| 2085 | + { |
| 2086 | + "disabled": false, |
| 2087 | + "key": "Content-Type", |
| 2088 | + "type": "default", |
| 2089 | + "value": "application/vnd.api+json" |
| 2090 | + }, |
| 2091 | + { |
| 2092 | + "disabled": false, |
| 2093 | + "key": "X-Correlation-Id", |
| 2094 | + "type": "default", |
| 2095 | + "value": "{{correlation_id}}" |
| 2096 | + }, |
| 2097 | + { |
| 2098 | + "disabled": false, |
| 2099 | + "key": "X-Request-ID", |
| 2100 | + "type": "default", |
| 2101 | + "value": "{{x_request_id}}" |
| 2102 | + } |
| 2103 | + ], |
| 2104 | + "method": "GET", |
| 2105 | + "url": { |
| 2106 | + "host": [ |
| 2107 | + "{{baseUrl}}" |
| 2108 | + ], |
| 2109 | + "path": [ |
| 2110 | + "mi", |
| 2111 | + ":id" |
| 2112 | + ], |
| 2113 | + "protocol": "", |
| 2114 | + "query": [], |
| 2115 | + "raw": "{{baseUrl}}/mi/:id", |
| 2116 | + "variable": [ |
| 2117 | + { |
| 2118 | + "description": "(Required) Unique identifier of this resource", |
| 2119 | + "key": "id", |
| 2120 | + "value": "2AL5eYSWGzCHlGmzNxuqVusPxDg" |
| 2121 | + } |
| 2122 | + ] |
| 2123 | + } |
| 2124 | + } |
| 2125 | + }, |
| 2126 | + { |
| 2127 | + "event": [ |
| 2128 | + { |
| 2129 | + "listen": "test", |
| 2130 | + "script": { |
| 2131 | + "exec": [ |
| 2132 | + "pm.test(\"Status code is 404\", () => {", |
| 2133 | + " pm.expect(pm.response.code).to.equal(404);", |
| 2134 | + "});", |
| 2135 | + "", |
| 2136 | + "const jsonData = pm.response.json();", |
| 2137 | + "pm.test(\"Response Body contains errors with correct code\", () => {", |
| 2138 | + " pm.expect(jsonData).to.have.property(\"errors\");", |
| 2139 | + " pm.expect(jsonData.errors[0].code).to.equal(\"NOTIFY_RESOURCE_NOT_FOUND\");", |
| 2140 | + "});" |
| 2141 | + ], |
| 2142 | + "packages": {}, |
| 2143 | + "requests": {}, |
| 2144 | + "type": "text/javascript" |
| 2145 | + } |
| 2146 | + } |
| 2147 | + ], |
| 2148 | + "name": "404 Not Found", |
| 2149 | + "request": { |
| 2150 | + "auth": { |
| 2151 | + "type": "noauth" |
| 2152 | + }, |
| 2153 | + "description": "Retrieve management information.", |
| 2154 | + "header": [ |
| 2155 | + { |
| 2156 | + "disabled": false, |
| 2157 | + "key": "Content-Type", |
| 2158 | + "type": "default", |
| 2159 | + "value": "application/vnd.api+json" |
| 2160 | + }, |
| 2161 | + { |
| 2162 | + "disabled": false, |
| 2163 | + "key": "X-Correlation-Id", |
| 2164 | + "type": "default", |
| 2165 | + "value": "{{correlation_id}}" |
| 2166 | + }, |
| 2167 | + { |
| 2168 | + "disabled": false, |
| 2169 | + "key": "X-Request-ID", |
| 2170 | + "type": "default", |
| 2171 | + "value": "{{x_request_id}}" |
| 2172 | + } |
| 2173 | + ], |
| 2174 | + "method": "GET", |
| 2175 | + "url": { |
| 2176 | + "host": [ |
| 2177 | + "{{baseUrl}}" |
| 2178 | + ], |
| 2179 | + "path": [ |
| 2180 | + "mi", |
| 2181 | + ":id" |
| 2182 | + ], |
| 2183 | + "protocol": "", |
| 2184 | + "query": [], |
| 2185 | + "raw": "{{baseUrl}}/mi/:id", |
| 2186 | + "variable": [ |
| 2187 | + { |
| 2188 | + "description": "(Required) Unique identifier of this resource", |
| 2189 | + "key": "id", |
| 2190 | + "value": "24L5eYSWGzCHlGmzNxuqVusP" |
| 2191 | + } |
| 2192 | + ] |
| 2193 | + } |
| 2194 | + } |
| 2195 | + } |
| 2196 | + ], |
| 2197 | + "name": "Get Management Information" |
2047 | 2198 | } |
2048 | 2199 | ], |
2049 | 2200 | "name": "MI" |
|
0 commit comments