
{"id":3462,"date":"2022-10-28T18:01:48","date_gmt":"2022-10-28T09:01:48","guid":{"rendered":"https:\/\/techmania.jp\/blog\/?p=3462"},"modified":"2023-07-06T20:27:56","modified_gmt":"2023-07-06T11:27:56","slug":"interface0003","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/interface0003\/","title":{"rendered":"REST API\u3068\u306f\uff1f\u3010\u5165\u9580\u30114\u539f\u5247\u3001SOAP API\u3068\u306e\u9055\u3044\u3001\u30e1\u30ea\u30c3\u30c8"},"content":{"rendered":"\n<h2 id=\"outline__1\" class=\"wp-block-heading\">REST API\u3068\u306f\uff1f<\/h2>\n\n\n<p>REST API \u3068\u306f\u3001\u4e00\u8a00\u3067\u3044\u3046\u3068\u300cREST\u300d\u3068\u3044\u3046\u8003\u3048\u65b9\u3067\u8a2d\u8a08\u3057\u305f API \u306e\u3053\u3068\u3067\u3001RESTful API \u3068\u547c\u3070\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<br>Web\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u3067\u3042\u308c\u3070\u300c\u30ec\u30b9\u30c8\u30d5\u30eb\u306a\u8a2d\u8a08\u3092\u3057\u3088\u3046\u300d\u3068\u3044\u3063\u305f\u3053\u3068\u3092\u8033\u306b\u3059\u308b\u6a5f\u4f1a\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br>\u305d\u3082\u305d\u3082\u3001\u3053\u306e\u300cREST\u300d\u3068\u306f Web\u30b5\u30fc\u30d3\u30b9\u3084 Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08\u306e\u601d\u60f3\u306e\u3072\u3068\u3064\u3067\u3001\u5168\u4e16\u754c\u3067\u7d71\u4e00\u3055\u308c\u305f\u30eb\u30fc\u30eb\u306e\u3053\u3068\u3067\u3059\u3002<br>\u305d\u3057\u3066\u3001\u305d\u306e\u30eb\u30fc\u30eb\u306b\u5f93\u3063\u3066\u4f5c\u6210\u3057\u305f API \u304c REST API \u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3060\u3051\u3067\u306f\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5bb6\u306e\u8a2d\u8a08\u306b\u305f\u3068\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br>\u4e00\u53e3\u306b\u5bb6\u3068\u3044\u3063\u3066\u3082\u3001\u6728\u9020\u306e\u4e00\u8ed2\u5bb6\u3084\u9244\u7b4b\u30b3\u30f3\u30af\u30ea\u30fc\u30c8\u9020\u306e\u30de\u30f3\u30b7\u30e7\u30f3\u307e\u3067\u3055\u307e\u3056\u307e\u3067\u3059\u3002<br>\u3082\u3057\u3001\u3042\u306a\u305f\u304c\u5bb6\u3092\u5efa\u3066\u3088\u3046\u3068\u8003\u3048\u305f\u6642\u3082\u3001\u6728\u306e\u6e29\u304b\u307f\u304c\u6b32\u3057\u3044\u304b\u3089\u6728\u9020\u306b\u3057\u3088\u3046\u3001\u3068\u304b\u3001\u9632\u97f3\u306e\u305f\u3081\u306b\u9244\u9020\u306b\u3057\u3088\u3046\u3001\u3068\u3044\u3063\u305f\u3001\u5bb6\u3092\u5efa\u3066\u308b\u76ee\u7684\u306b\u3088\u3063\u3066\u305d\u306e\u8a2d\u8a08\u624b\u6bb5\u306f\u7570\u306a\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3068\u540c\u3058\u3088\u3046\u306b\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u3044\u304f\u4e0a\u3067\u3082\u3001\u30a2\u30af\u30bb\u30b9\u6570\u306e\u591a\u3044 SNS \u3092\u4f5c\u308a\u305f\u3044\u3001\u3068\u3044\u3063\u305f\u76ee\u7684\u304b\u3089\u3001\u305d\u308c\u306b\u9069\u3057\u305f\u300cREST\u300d\u3068\u3044\u3046\u601d\u60f3\u3092\u9069\u5fdc\u3055\u305b\u3066\u958b\u767a\u3092\u9032\u3081\u3066\u3044\u304f\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>REST \u306e\u307b\u304b\u306b\u3082\u8a2d\u8a08\u601d\u60f3\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u3001\u304b\u3064\u3066\u306f SOAP (Simple Object Access Protocol) \u3084 RPC (Representational State Transfer) \u3068\u3044\u3046\u8a2d\u8a08\u601d\u60f3\u3067\u8a2d\u8a08\u3059\u308b\u3053\u3068\u3082\u591a\u304b\u3063\u305f\u3067\u3059\u304c\u3001\u73fe\u5728\u306f\u5b9f\u88c5\u3057\u3084\u3059\u304f\u3001\u6c4e\u7528\u6027\u306e\u9ad8\u3044REST\u3092\u9069\u5fdc\u3055\u305b\u308b\u306e\u304c\u4e3b\u6d41\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001REST \u3092\u5b66\u3076\u3053\u3068\u3067\u591a\u7a2e\u591a\u69d8\u306a Web\u30b5\u30fc\u30d3\u30b9\u3084 Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u9069\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">API\u3068\u306f\uff1f<\/h2>\n\n\n<p>API\u306f\u300cApplication Programming Interface\u300d\u306e\u7565\u3067\u3001HTTP\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u3063\u3066\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u306e\u30c7\u30fc\u30bf\u3084\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u7528\u3044\u3089\u308c\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3059\u3002\u3053\u306e\u3001\u300c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u300d\u3068\u306f\u3001\u4f55\u304b\u3068\u4f55\u304b\u3092\u7e4b\u3050\u3082\u306e\u306e\u7dcf\u79f0\u3067\u3001\u305f\u3068\u3048\u3070\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u3082\u4eba\u9593\u3068 PC \u3092\u7e4b\u3050\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3059\u3002<br>API \u3082\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u306e\u4e2d\u7d99\u304e\u3092\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3059\u3002\u6628\u4eca\u3067\u306f\u3001API \u3068\u3044\u3046\u3068\u3001Web API \u3092\u6307\u3059\u5834\u5408\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u306a\u304b\u3067\u3082\u73fe\u5728\u4e3b\u6d41\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u300cREST API\u300d\u3067\u3059\u3002<\/p>\n<p>Web API \u3092\u5229\u7528\u3059\u308b\u6700\u5927\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u4ed6\u793e\u304c\u63d0\u4f9b\u3059\u308b\u8c4a\u5bcc\u306a\u30c7\u30fc\u30bf\u3084\u6a5f\u80fd\u3092\u7c21\u5358\u306b\u5229\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u81ea\u793e\u3067\u5168\u3066\u306e\u6a5f\u80fd\u3092\u4e00\u304b\u3089\u958b\u767a\u3059\u308b\u306b\u306f\u304b\u306a\u308a\u306e\u8ca0\u62c5\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001\u4ed6\u793e\u304c\u63d0\u4f9b\u3059\u308b\u65e2\u5b58\u306e\u6a5f\u80fd\u3092\u53d6\u308a\u5165\u308c\u308b\u3053\u3068\u3067\u958b\u767a\u3092\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001Web API \u3092\u63d0\u4f9b\u3059\u308b\u5074\u3068\u3057\u3066\u3082\u3001\u81ea\u793e\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u5e83\u304f\u5229\u7528\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u3067\u30e6\u30fc\u30b6\u306e\u5897\u52a0\u304c\u671f\u5f85\u3067\u304d\u308b\u3068\u3044\u3063\u305f\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<h3 id=\"outline__2_1\" class=\"wp-block-heading\">API\u306e\u4ed5\u7d44\u307f<\/h3>\n\n\n<p>API \u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u306e\u4e2d\u7d99\u5f79\u3067\u3042\u308b\u3068\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<br>\u305f\u3068\u3048\u3070\u3001\u30b9\u30de\u30db\u3067 YouTube \u3092\u898b\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u30b9\u30de\u30db\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<br>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30ea\u30af\u30a8\u30b9\u30c8 (HTTP\u30ea\u30af\u30a8\u30b9\u30c8) \u3092\u30b5\u30fc\u30d0\u306b\u9001\u308a\u307e\u3059\u3002<br>\u3053\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306f\u3001\u6b63\u3057\u304f\u306f HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u3044\u3063\u3066\u3001\u300chttps:\/\/\u301c\u300d\u306e http \u306e\u3053\u3068\u3067\u3059\u3002<br>URL\u306f Web\u4e0a\u306e\u4f4f\u6240\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3001\u3053\u308c\u3092\u53d7\u3051\u53d6\u3063\u305f\u30b5\u30fc\u30d0\u306f\u305d\u308c\u306b\u5bfe\u3059\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u8fd4\u3057\u307e\u3059\u3002\u305d\u308c\u306b\u3088\u3063\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u305d\u306e Web\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u3059\u3002<br>\u305d\u3057\u3066\u3053\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u3092\u4e2d\u7d99\u3057\u3066\u3044\u308b\u306e\u304c API \u306a\u306e\u3067\u3059\u3002<br>\u30ec\u30b9\u30c8\u30e9\u30f3\u3067\u4f8b\u3048\u3066\u307f\u308b\u3068\u3001\u304a\u5ba2\u3055\u3093\u306f\u3044\u308d\u3093\u306a\u6599\u7406\u304c\u8f09\u3063\u305f\u30e1\u30cb\u30e5\u30fc\u8868\u304b\u3089\u9078\u3093\u3067\u6ce8\u6587\u3057\u3001\u6ce8\u6587\u304c\u5165\u3063\u305f\u3089\u30b7\u30a7\u30d5\u304c\u6599\u7406\u3092\u4f5c\u308a\u3001\u51fa\u6765\u4e0a\u304c\u3063\u305f\u6599\u7406\u3092\u30a6\u30a7\u30a4\u30bf\u30fc\u304c\u5ba2\u306b\u904b\u3076\u3053\u3068\u3067\u304a\u5ba2\u3055\u3093\u306f\u98df\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<br>\u3053\u3053\u3067\u3044\u3046\u304a\u5ba2\u3055\u3093\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001\u30e1\u30cb\u30e5\u30fc\u8868\u306e\u4e2d\u304b\u3089\u6ce8\u6587\u3092\u627f\u308b\u30a6\u30a7\u30a4\u30bf\u30fc\u304cAPI\u3001\u30b7\u30a7\u30d5\u304c\u30b5\u30fc\u30d0\u3067\u3059\u3001\u6599\u7406\u540d\u304c\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<br>\u30e1\u30cb\u30e5\u30fc\u8868\u306b\u306a\u3044\u3082\u306e\u306f\u6ce8\u6587\u3067\u304d\u306a\u3044\u306e\u3068\u540c\u69d8\u306b\u3001\u3042\u3089\u304b\u3058\u3081\u63d0\u4f9b\u3059\u308b API \u306f\u6c7a\u307e\u3063\u3066\u3044\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u7ba1\u8f44\u5916\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u304f\u308b\u3068\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"bgBox\">\n<p><strong>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u69cb\u6210\u8981\u7d20<\/strong><br>URL \uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u5148<br>\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4ed8\u5c5e\u60c5\u5831 (\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fc5\u8981\u306a\u79d8\u5bc6\u60c5\u5831\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5f62\u5f0f\u306a\u3069)<br>\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf \uff1a\u7279\u5b9a\u30ad\u30fc\u30ef\u30fc\u30c9<\/p>\n<p><strong>API\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u69cb\u6210\u8981\u7d20<\/strong><br>\u30ec\u30b9\u30dd\u30f3\u30b9\uff1aJSON\u306e\u5f62\u5f0f\u304c\u4e00\u822c\u7684\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b<br>HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\uff1a\u6b63\u5e38\u306a\u3089200<\/p>\n<\/div>\n<div style=\"margin-top:4%;\">\n<p style=\"text-align:center; text-decoration:underline blue; font-weight:bold;\"><a href=\"https:\/\/techmania.jp\/lp\/2\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u304b\u3089\u30b5\u30a4\u30c8\u5236\u4f5c\u307e\u3067<br>\u2193\u5b9f\u8df5\u529b\u304c\u8eab\u306b\u3064\u304f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u2193<\/a><\/p>\n<\/div>\n<div style=\"text-align:center; margin-top:1%;\"><a href=\"https:\/\/techmania.jp\/lp\/2\"><img decoding=\"async\" style=\"width:300px;\" alt=\"IT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u6821 \u30c6\u30c3\u30af\u30de\u30cb\u30a2\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/05\/sc4.jpg\"><\/a><\/div>\n<div style=\"margin-top:-0.3%;\">\n<p style=\"text-align:center; text-decoration:underline red; font-weight:bold;\"><a href=\"https:\/\/techmania.jp\/lp\/2\"><font color=\"red\">\u226b\u30e2\u30cb\u30bf\u30fc\u5272\u5f15\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5b9f\u65bd\u4e2d\uff01\u226a<\/font><\/a><\/p>\n<\/div>\n\n\n<h3 id=\"outline__2_2\" class=\"wp-block-heading\">\u4ee3\u8868\u7684\u306aAPI<\/h3>\n\n\n<p><strong>News API<\/strong><br>News API \u306f\u3001\u4e16\u754c\u4e2d\u306e\u30cb\u30e5\u30fc\u30b9\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b API \u3067\u3001\u7279\u5b9a\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u542b\u3080\u30cb\u30e5\u30fc\u30b9\u3084\u7279\u5b9a\u306e\u30cb\u30e5\u30fc\u30b9\u30bd\u30fc\u30b9\u306e\u30cb\u30e5\u30fc\u30b9\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>YouTube Data API<\/strong><br>YouTube Data API \u306f\u3001YouTube\u52d5\u753b\u3092\u53d6\u5f97\u3067\u304d\u308b API \u3067\u3001\u7279\u5b9a\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u542b\u3080\u52d5\u753b\u3084\u7279\u5b9a\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3001\u81ea\u5206\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u52d5\u753b\u306e\u7d71\u8a08\u60c5\u5831\u306a\u3069\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">REST\u3068\u306f\uff1f<\/h2>\n\n\n<p>REST \u306f\u300cRepresentational\u3001State\u3001Transfer\u300d\u306e\u982d\u6587\u5b57\u3092\u3068\u3063\u305f\u3001\u30b7\u30b9\u30c6\u30e0\u8a2d\u8a08\u306b\u304a\u3051\u308b\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<div class=\"bgBox\">\n<p>Representational (\u4ee3\u8868\u7684\u306a)<br>State (\u72b6\u614b)<br>Transfer (\u8ee2\u9001)<\/p>\n<\/div>\n<p>\u3053\u308c\u3060\u3051\u3067\u306f\u610f\u5473\u304c\u5206\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u65b9\u3082\u591a\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u307e\u305a\u306f REST \u306e\u8a2d\u8a08\u306b\u304a\u3051\u308b\u30eb\u30fc\u30eb\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<br>\u5148\u307b\u3069\u306e\u5bb6\u3065\u304f\u308a\u306e\u4f8b\u3067\u884c\u304f\u3068\u3001\u3053\u306e\u6728\u306e\u786c\u3055\u3067\u306f\u4f7f\u3048\u307e\u305b\u3093\u3088\u3001\u3053\u306e\u6728\u306e\u786c\u3055\u4ee5\u4e0a\u3060\u3063\u305f\u3089\u4f7f\u3048\u307e\u3059\u3088\u3001\u3068\u3044\u3063\u305f\u30eb\u30fc\u30eb\u304c\u3042\u308b\u3088\u3046\u306b\u3001REST \u306b\u3082\u3044\u304f\u3064\u304b\u306e\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">REST\u306e\uff14\u539f\u5247<\/h2>\n\n\n<p>REST \u306b\u306f\u3044\u304f\u3064\u304b\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u306a\u304b\u3067\u3082\u4ee3\u8868\u7684\u306a 4 \u3064\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br>\u3053\u306e REST \u306e 4 \u539f\u5247\u306f\u3001\u3082\u3068\u3082\u3068 HTTP \u3092\u8a2d\u8a08\u3057\u305f\u4e2d\u5fc3\u4eba\u7269\u3067\u3042\u308b Roy Fielding \u6c0f\u304c 2000 \u5e74\u306b\u8ad6\u6587\u3067\u63d0\u5531\u3057\u305f\u3082\u306e\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span class=\"markerYellow\"><strong>\u30a2\u30c9\u30ec\u30b9\u53ef\u80fd\u6027 (Addressability)<\/strong><\/span><br>\u30a2\u30c9\u30ec\u30b9\u53ef\u80fd\u6027\u3068\u306f URL \u3092\u6253\u3061\u8fbc\u3080\u3053\u3068\u3067\u30c7\u30fc\u30bf\u304c\u8fd4\u3063\u3066\u304f\u308b\u3001\u3068\u3044\u3063\u305f\u3088\u3046\u306b\u3001\u305d\u308c\u305e\u308c\u306e\u60c5\u5831\u3054\u3068\u306b\u5834\u6240\u3084\u540d\u524d\u3092\u8b58\u5225\u3067\u304d\u308b\u3088\u3046\u306b\u8868\u73fe\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p><strong><span class=\"markerYellow\">\u7d71\u4e00\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9 (Uniform Interface)<\/span><\/strong><br>\u60c5\u5831\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u65b9\u6cd5\u3001\u3064\u307e\u308a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u3042\u3089\u304b\u3058\u3081\u7d71\u4e00\u3055\u305b\u3066\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306aHTTP\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"bgBox\">\n<p><strong>HTTP\u6a19\u6e96\u30e1\u30bd\u30c3\u30c9<\/strong><br>GET (\u60c5\u5831\u306e\u53d6\u5f97)<br>POST (\u60c5\u5831\u306e\u6295\u7a3f)<br>PUT (\u60c5\u5831\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3001\u7de8\u96c6)<br>DELETE (\u60c5\u5831\u306e\u524a\u9664)<\/p>\n<\/div>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u60c5\u5831\u304c\u6b32\u3057\u3044\u5834\u5408\u306fGET\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u300cGET\u300d\u304c\u7d71\u4e00\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3042\u308a\u3001\u3042\u3089\u304b\u3058\u3081\u3001\u3053\u308c\u3089 4 \u3064\u306e HTTP\u30e1\u30bd\u30c3\u30c9\u3092 Web\u30b5\u30fc\u30d3\u30b9\u4e0a\u3067\u4f7f\u3046\u3068\u3044\u3046\u30eb\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p><span class=\"markerYellow\"><strong>\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u6027 (Stateless)<\/strong><\/span><br>\u30b5\u30fc\u30d0\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6c7a\u6e08\u60c5\u5831\u3068\u304b\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u904e\u53bb\u306e\u72b6\u614b\uff08\u60c5\u5831\uff09\u3092\u4fdd\u6301\u305b\u305a\u306b\u3001\u305d\u306e\u90fd\u5ea6\u53d7\u3051\u53d6\u3063\u305f\u5185\u5bb9\u306b\u5bfe\u3059\u308b\u7d50\u679c\u3092\u8fd4\u3059\u3053\u3068\u3067\u3059\u3002<br>\u3053\u306e\u9006\u306f\u30b9\u30c6\u30fc\u30c8\u30d5\u30eb\u306a\u72b6\u614b\u3068\u3044\u3063\u3066\u3001\u904e\u53bb\u306e\u60c5\u5831\u3092\u4fdd\u6301\u3057\u305f\u72b6\u614b\u306e\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002<\/p>\n<p>\u4fbf\u5229\u305d\u3046\u306a\u30b9\u30c6\u30fc\u30c8\u30d5\u30eb\u306a\u72b6\u614b\u3067\u306a\u304f\u3001\u306a\u305c\u3001\u308f\u3056\u308f\u3056\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u306a\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u904e\u53bb\u306e\u60c5\u5831\u3092\u4fdd\u6301\u3057\u305f\u72b6\u614b\u3060\u3068\u7ba1\u7406\u304c\u96e3\u3057\u304f\u3001\u60c5\u5831\u306e\u898b\u6975\u3081\u3084\u7ba1\u7406\u306e\u30b3\u30b9\u30c8\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u7d71\u4e00\u3059\u308b\u3053\u3068\u3067\u30b3\u30b9\u30c8\u904b\u7528\u306e\u524a\u6e1b\u3084\u62e1\u5f35\u6027 (\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3) \u304c\u9ad8\u307e\u308a\u307e\u3059\u3002<\/p>\n<p><span class=\"markerYellow\"><strong>\u63a5\u7d9a\u6027 (Connectability)<\/strong><\/span><br>1 \u3064\u306e\u8a18\u4e8b\u306b\u8907\u6570\u306e\u30ea\u30f3\u30af\u304c\u8cbc\u3089\u308c\u3066\u3044\u308b\u72b6\u614b\u3092\u63a5\u7d9a\u6027\u304c\u3042\u308b\u3068\u3044\u3044\u307e\u3059\u3002<\/p>\n<p>REST \u306e Representational \u306f URL \u306b\u76f8\u5f53\u3057\u3001URL \u306b\u3088\u3063\u3066\u6700\u65b0\u72b6\u614b\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u8ee2\u9001\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u306e\u30eb\u30fc\u30eb\u3092\u6e80\u305f\u3057\u305f Web\u30b5\u30fc\u30d3\u30b9\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u300c\u30ec\u30b9\u30c8\u30d5\u30eb\u306a Web\u30b5\u30fc\u30d3\u30b9\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u3044\u3044\u307e\u3059\u3002<\/p>\n<p>REST \u306e\u539f\u5247\u306b\u5f93\u3046\u3053\u3068\u3067\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u52b9\u7387\u7684\u306a\u60c5\u5831\u306e\u3084\u308a\u3068\u308a\u304c\u3067\u304d\u3001\u5927\u898f\u6a21\u3067\u30a2\u30af\u30bb\u30b9\u304c\u96c6\u4e2d\u3059\u308b\u3088\u3046\u306a Web\u30b5\u30fc\u30d3\u30b9\u3084 Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306b\u9069\u5fdc\u3055\u305b\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\">REST API\u3068SOAP API\u306e\u9055\u3044<\/h2>\n\n\n<p>REST API \u3068 SOAP API \u306f\u3069\u3061\u3089\u3082 HTTP\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6d3b\u7528\u3059\u308b\u70b9\u306f\u540c\u3058\u3067\u3059\u304c\u3001SOAP API \u306f REST API \u3088\u308a\u3082\u53b3\u683c\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u30d1\u30bf\u30fc\u30f3\u3092\u6301\u3064\u305f\u3081\u3001\u5b89\u5168\u6027\u306f\u9ad8\u3044\u3067\u3059\u304c\u3001\u8ca0\u8377\u304c\u5927\u304d\u3044\u306e\u3067 REST API \u3088\u308a\u3082\u30b9\u30d4\u30fc\u30c9\u6027\u306f\u843d\u3061\u308b\u50be\u5411\u306b\u3042\u308a\u307e\u3059\u3002<br>REST API \u306f\u67d4\u8edf\u6027\u306b\u512a\u308c\u3001\u8efd\u91cf\u3067\u3082\u3042\u308b\u305f\u3081\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306a\u3069\u306b\u6700\u9069\u3067\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__6\" class=\"wp-block-heading\">REST API\u306e\u30e1\u30ea\u30c3\u30c8<\/h2>\n\n\n<p>Web\u30b5\u30fc\u30d3\u30b9\u306b API \u3092\u63a1\u7528\u3057\u3001REST \u306b\u5f93\u3063\u305f\u8a2d\u8a08\u306b\u3059\u308b\u3053\u3068\u3067\u901a\u5e38\u306e Web\u30b5\u30fc\u30d3\u30b9\u3068\u6bd4\u3079\u3066\u6b21\u306e\u3088\u3046\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5171\u901a\u306e\u67a0\u7d44\u307f\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u8005\u304c\u7406\u89e3\u3057\u6613\u304f\u3001\u5229\u7528\u8005\u306b\u3068\u3063\u3066\u3082\u4f7f\u3044\u3084\u3059\u304f\u306a\u308b<\/li>\n<li>HTTP\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4e00\u8cab\u6027\u306e\u3042\u308b\u30b7\u30f3\u30d7\u30eb\u3067\u52b9\u7387\u7684\u306a\u958b\u767a\u304c\u3067\u304d\u308b<\/li>\n<li>\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u306b\u3088\u308a\u3001\u8ca0\u8377\u306b\u5fdc\u3058\u305f\u62e1\u5f35\u304c\u3057\u3084\u3059\u304f\u306a\u308b<\/li>\n<\/ul>\n\n\n<h2 id=\"outline__7\" class=\"wp-block-heading\">REST API\u3092\u4f7f\u3046\u30c7\u30e1\u30ea\u30c3\u30c8<\/h2>\n\n\n<p>REST \u306f\u3042\u304f\u307e\u3067\u3082\u8a2d\u8a08\u306b\u304a\u3051\u308b\u8003\u3048\u65b9\u3067\u3042\u308b\u305f\u3081\u3001\u5b9f\u88c5\u306e\u898f\u5b9a\u304c\u306a\u3044\u5206\u3001\u958b\u767a\u8005\u306b\u3088\u3063\u3066\u8a18\u8ff0\u65b9\u6cd5\u306b\u3070\u3089\u3064\u304d\u304c\u51fa\u3066\u3057\u307e\u3046\u6050\u308c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"REST API\u3068\u306f\uff1f REST API \u3068\u306f\u3001\u4e00\u8a00\u3067\u3044\u3046\u3068\u300cREST\u300d\u3068\u3044\u3046\u8003\u3048\u65b9\u3067\u8a2d\u8a08\u3057\u305f API \u306e\u3053\u3068\u3067\u3001RESTful API \u3068\u547c\u3070\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002Web\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u3067\u3042\u308c\u3070\u300c\u30ec\u30b9\u30c8\u30d5\u30eb\u306a\u8a2d\u8a08\u3092\u3057\u3088\u3046\u300d\u3068\u3044\u3063\u305f\u3053\u3068\u3092\u8033\u306b\u3059\u308b\u6a5f\u4f1a\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u305d\u3082\u305d\u3082\u3001\u3053\u306e\u300cREST\u300d\u3068\u306f Web\u30b5\u30fc\u30d3\u30b9\u3084 Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08\u306e\u601d\u60f3\u306e\u3072\u3068\u3064\u3067\u3001\u5168\u4e16\u754c\u3067\u7d71\u4e00\u3055\u308c\u305f\u30eb\u30fc\u30eb\u306e\u3053\u3068\u3067 [&hellip;]","protected":false},"author":8,"featured_media":3465,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/restapi_pic.png","fifu_image_alt":"REST API\u3068\u306f\uff1f4\u539f\u5247\u3084SOAP API\u3068\u306e\u9055\u3044\u3001\u30e1\u30ea\u30c3\u30c8\u3001\u30c7\u30e1\u30ea\u30c3\u30c8\u3092\u89e3\u8aac","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/3462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=3462"}],"version-history":[{"count":7,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/3462\/revisions"}],"predecessor-version":[{"id":5012,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/3462\/revisions\/5012"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/3465"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=3462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=3462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=3462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}