REST V2コネクタ > REST V2操作 > 応答ヘッダーの解析
  

応答ヘッダーの解析

REST APIエンドポイントが送信した応答のヘッダーコンテンツを解析できます。
ヘッダーコンテンツを解析するには、Swaggerファイルのheadersタグを使用します。Set-Cookieタグを使用すると、headerタグの一部としてCookieコンテンツを解析することもできます。REST V2コネクタが、Swaggerファイルに定義されているフィールドを解析します。Webサービスで使用される、ヘッダーまたはCookie用の追加フィールドは、それぞれOtherResponseHeadersフィールドとOtherCookiesフィールドの下に表示されます。
応答ヘッダーの定義
"responses" : {
....
"headers": {
"places": {
"type" : "string",
"description": "calls per hour allowed by the user"
},
"sessionId": {
"type": "integer",
"description": "date in UTC when token expires"
},
"Set-Cookie/activeSession": {
"type" : "string",
"description": "cookies sample"
},
"Set-Cookie/PhoneId": {
"type": "integer",
"description": "cookies sample"
}
}