Restlet Client – REST API Testing
1.Google拡張機能で、以下をインストール
Restlet Client – REST API Testing
2.例
<Request>
GET
https://map.yahooapis.jp/weather/V1/place?appid={アプリケーションID}&coordinates={緯度、経度}
<Response>
HTTP/1.1 200
status: 200
date: Wed, 11 Sep 2019 07:52:52 GMT
x-frame-options: SAMEORIGIN
cache-control: public, max-age=113
expires: Wed, 11 Sep 2019 07:54:45 GMT
vary: Accept-Encoding
content-encoding: gzip
content-length: 564
content-type: application/xml; charset=UTF-8
age: 0
via: http/1.1 edge2469.img.djm.yahoo.co.jp (ApacheTrafficServer [c sSf ])
server: ATS
<?xml version="1.0" encoding="UTF-8"?>
<YDF xmlns="http://olp.yahooapis.jp/ydf/1.0" firstResultPosition="1" totalResultsAvailable="1" totalResultsReturned="1">
<ResultInfo>
<Count>1</Count>
<Total>1</Total>
<Start>1</Start>
<Status>200</Status>
<Latency>0.004252</Latency>
<Description></Description>
<Copyright>(C) Yahoo Japan Corporation.</Copyright>
</ResultInfo>
<Feature>
<Id>201909111640_35.663613_139.73229</Id>
<Name>地点(35.663613,139.73229)の2019年09月11日 16時40分から60分間の天気情報</Name>
<Geometry>
<Type>point</Type>
<Coordinates>35.663613,139.73229</Coordinates>
</Geometry>
<Property>
<WeatherAreaCode />
<WeatherList>
<Weather>
<Type>observation</Type>
<Date>201909111640</Date>
<Rainfall />
</Weather>
<Weather>
<Type>forecast</Type>
<Date>201909111650</Date>
<Rainfall />
</Weather>
<Weather>
<Type>forecast</Type>
<Date>201909111700</Date>
<Rainfall />
</Weather>
<Weather>
<Type>forecast</Type>
<Date>201909111710</Date>
<Rainfall />
</Weather>
<Weather>
<Type>forecast</Type>
<Date>201909111720</Date>
<Rainfall />
</Weather>
<Weather>
<Type>forecast</Type>
<Date>201909111730</Date>
<Rainfall />
</Weather>
<Weather>
<Type>forecast</Type>
<Date>201909111740</Date>
<Rainfall />
</Weather>
</WeatherList>
</Property>
</Feature>
</YDF>