{"id":7876,"date":"2025-10-02T18:00:23","date_gmt":"2025-10-02T18:00:23","guid":{"rendered":"https:\/\/pokecon.jp\/job\/?p=7876"},"modified":"2025-10-02T18:00:23","modified_gmt":"2025-10-02T18:00:23","slug":"%e8%8b%a5%e6%89%8b%e3%83%95%e3%83%ad%e3%83%b3%e3%83%88%e3%82%a8%e3%83%b3%e3%83%89%e3%82%a8%e3%83%b3%e3%82%b8%e3%83%8b%e3%82%a2%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ae%e3%83%90%e3%83%83%e3%82%af%e3%82%a8-2","status":"publish","type":"post","link":"https:\/\/pokecon.jp\/job\/7876\/","title":{"rendered":"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 &#8211; ICS MEDIA"},"content":{"rendered":"\n<\/p>\n<div id=\"\">\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u3067\u306f<code>fetch()<\/code>\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3092\u4f7f\u3063\u3066REST API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u51e6\u7406\u3092\u66f8\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u3089\u308c\u305f\u5148\u3067\u52d5\u304f\u306e\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u4ed5\u7d44\u307f\u3092\u3088\u304f\u77e5\u3089\u306a\u3044\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u5411\u3051\u306b\u3001\u524d\u5f8c\u7de8\u306b\u5206\u3051\u3066\u30cf\u30f3\u30ba\u30aa\u30f3\u5f62\u5f0f\u3067\u4ed5\u7d44\u307f\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/ics.media\/entry\/250925\/\">\u524d\u7de8<\/a>\u3067\u306f\u7c21\u5358\u306aREST API\u3092\u4f5c\u6210\u3057\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089\u547c\u3073\u51fa\u3059\u3068\u3053\u308d\u307e\u3067\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002\u5f8c\u7de8\u3067\u3042\u308b\u4eca\u56de\u306f\u30e1\u30e2\u30a2\u30d7\u30ea\u3092\u4f5c\u308a\u306a\u304c\u3089\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u4fdd\u5b58\u30fb\u66f4\u65b0\u30fb\u53d6\u5f97\u30fb\u524a\u9664\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u524d\u7de8\u3068\u6bd4\u3079\u308b\u3068\u5c11\u3057\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u5206\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u57fa\u672c\u7684\u306a\u6d41\u308c\u3092\u5b66\u3079\u307e\u3059\u3002<\/p>\n<p>\u5b8c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u306e\u30c7\u30e2\u306f\u4ee5\u4e0b\u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<strong>\u3053\u306e\u30a2\u30d7\u30ea\u306f\u5168\u4f53\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u500b\u4eba\u60c5\u5831\u3084\u8ab9\u8b17\u4e2d\u50b7\u306a\u3069\u3001\u4e0d\u9069\u5207\u306a\u5185\u5bb9\u306f\u66f8\u304d\u8fbc\u307e\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/strong> \u30a2\u30d7\u30ea\u306e\u8d77\u52d5\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u8aad\u307f\u8fbc\u307f\u4e2d\u306e\u8868\u793a\u306b\u306a\u308b\u5834\u5408\u306f1\u5206\u307b\u3069\u5f85\u3063\u3066\u304b\u3089\u518d\u5ea6\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img decoding=\"async\" srcset=\"https:\/\/ics.mediahttps:\/\/ics.media\/entry\/251002\/images\/251002_memoapp.gif 1920w\" src=\"https:\/\/ics.media\/entry\/251002\/images\/251002_memoapp.gif\" sizes=\"auto, (max-width:720px) 100vw, 720px\" width=\"1920\" height=\"1080\" alt=\"\u30e1\u30e2\u30a2\u30d7\u30ea\" loading=\"lazy\"\/><\/p>\n<h3 id=\"%E3%83%90%E3%83%83%E3%82%AF%E3%82%A8%E3%83%B3%E3%83%89%E3%81%AE%E6%8A%80%E8%A1%93%E6%A7%8B%E6%88%90\" tabindex=\"-1\">\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u6280\u8853\u69cb\u6210<\/h3>\n<p>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306f<a target=\"_blank\" href=\"https:\/\/nestjs.com\/\" target=\"_blank\">NestJS<\/a> + <a target=\"_blank\" href=\"https:\/\/typeorm.io\/\" target=\"_blank\">TypeORM<\/a> + <a target=\"_blank\" href=\"https:\/\/sqlite.org\/\" target=\"_blank\">SQLite<\/a>\u3068\u3044\u3046\u69cb\u6210\u3067\u4f5c\u308a\u307e\u3059\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u901a\u4fe1\u306b\u306fREST API\u3092\u63a1\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u8fd1\u5e74\u306eGraphQL\u3084NoSQL\u3068\u3044\u3063\u305f\u9078\u629e\u80a2\u3068\u6bd4\u3079\u3066\u30b7\u30f3\u30d7\u30eb\u3067\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u4f4e\u304f\u3001\u57fa\u790e\u306e\u7406\u89e3\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u3068\u304f\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5b89\u5b9a\u3057\u3066\u3044\u3066\u57fa\u672c\u7684\u306a\u6280\u8853\u306e\u305f\u3081\u591a\u304f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u308f\u308c\u3066\u3044\u3066\u3001\u77e5\u3063\u3066\u304a\u304f\u4fa1\u5024\u304c\u9ad8\u3044\u3002<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u6d41\u308c\u3092\u7406\u89e3\u3057\u3084\u3059\u3044\u3002<\/li>\n<li>\u60c5\u5831\u304c\u8c4a\u5bcc\u306a\u306e\u3067\u8a70\u307e\u3063\u305f\u3068\u304d\u306b\u89e3\u6c7a\u3057\u3084\u3059\u3044\u3002<\/li>\n<\/ul>\n<h4 id=\"%E3%81%9D%E3%82%8C%E3%81%9E%E3%82%8C%E3%81%AE%E5%BD%B9%E5%89%B2\" tabindex=\"-1\">\u305d\u308c\u305e\u308c\u306e\u5f79\u5272<\/h4>\n<ul>\n<li>NestJS: Node.js\u3067\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308a\u3001\u51e6\u7406\u3092\u884c\u3044\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u4e00\u9023\u306e\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<li>SQLite: \u8efd\u91cf\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u30011\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u4eca\u56de\u4f5c\u308b\u30e1\u30e2\u30a2\u30d7\u30ea\u306e\u3088\u3046\u306a\u5c0f\u3055\u306a\u30a2\u30d7\u30ea\u306b\u4fbf\u5229\u3067\u3059\u3002<\/li>\n<li>TypeORM: \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u969b\u306f\u901a\u5e38SQL\u3068\u3044\u3046\u8a00\u8a9e\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001TypeORM\u3092\u4f7f\u3046\u3068TypeScript\u3067\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3 id=\"%E3%83%90%E3%83%83%E3%82%AF%E3%82%A8%E3%83%B3%E3%83%89%E3%81%AE%E6%A6%82%E5%BF%B5\" tabindex=\"-1\">\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u6982\u5ff5<\/h3>\n<p>\u5b9f\u88c5\u306b\u5165\u308b\u524d\u306b\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068REST API\u306e\u57fa\u672c\u6982\u5ff5\u3092\u7c21\u5358\u306b\u304a\u3055\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4 id=\"crud\" tabindex=\"-1\">CRUD<\/h4>\n<p>CRUD\uff08\u30af\u30e9\u30c3\u30c9\uff09\u3068\u306f\u300cCreate\u300d\u3001\u300cRead\u300d\u3001\u300cUpdate\u300d\u3001\u300cDelete\u300d\u306e\u982d\u6587\u5b57\u3092\u3068\u3063\u305f\u8a00\u8449\u3067\u3059\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u51e6\u7406\u306f\u307b\u3068\u3093\u3069\u3053\u306e4\u3064\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3059\u3002<\/p>\n<ul>\n<li>Create: \u30c7\u30fc\u30bf\u3092\u65b0\u3057\u304f\u4f5c\u308b<\/li>\n<li>Read: \u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/li>\n<li>Update: \u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b<\/li>\n<li>Delete: \u30c7\u30fc\u30bf\u3092\u524a\u9664\u3059\u308b<\/li>\n<\/ul>\n<h4 id=\"http%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89\" tabindex=\"-1\">HTTP\u30e1\u30bd\u30c3\u30c9<\/h4>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3068\u304d\u306fHTTP\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002\u3088\u304f\u4f7f\u7528\u3059\u308b\u306e\u306f\u300cGET\u300d\u3001\u300cPOST\u300d\u3001\u300cPUT\u300d\u3001\u300cPATCH\u300d\u3001\u300cDELETE\u300d\u306e5\u3064\u3067\u3001\u3053\u308c\u3089\u3092\u4f7f\u3044\u5206\u3051\u3066\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u3069\u3093\u306a\u51e6\u7406\u3092\u3057\u3066\u307b\u3057\u3044\u304b\u3092\u4f1d\u3048\u307e\u3059\u3002<\/p>\n<ul>\n<li>GET: \u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/li>\n<li>POST: \u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3092\u4f5c\u308b<\/li>\n<li>PUT: \u30c7\u30fc\u30bf\u5168\u4f53\u3092\u66f4\u65b0\u3059\u308b<\/li>\n<li>PATCH: \u30c7\u30fc\u30bf\u306e\u4e00\u90e8\u3092\u66f4\u65b0\u3059\u308b<\/li>\n<li>DELETE: \u30c7\u30fc\u30bf\u3092\u524a\u9664\u3059\u308b<\/li>\n<\/ul>\n<h4 id=\"restful-api\" tabindex=\"-1\">RESTful API<\/h4>\n<p>RESTful API\u306f\u3001REST\u5f62\u5f0f\u306eAPI\u8a2d\u8a08\u306e\u601d\u60f3\u306e\u3072\u3068\u3064\u3067\u3059\u3002\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3053\u306e\u8a18\u4e8b\u3067\u306f\u8aac\u660e\u3057\u307e\u305b\u3093\u3002\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u6280\u8853\u30d6\u30ed\u30b0\u3084\u6280\u8853\u66f8\u3092\u8aad\u3080\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8003\u3048\u65b9\u3092\u3082\u3068\u306b\u30e1\u30e2\u30a2\u30d7\u30ea\u306eREST API\u3092\u8a2d\u8a08\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30e1\u30e2\u306e\u4f5c\u6210: <code>POST \/memos<\/code><\/li>\n<li>\u30e1\u30e2\u306e\u53d6\u5f97:\n<ul>\n<li>\u4e00\u89a7: <code>GET \/memos<\/code><\/li>\n<li>\u7279\u5b9a\u306e\u30e1\u30e2: <code>GET \/memos\/{\u30e1\u30e2\u306eID}<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u30e1\u30e2\u306e\u66f4\u65b0: <code>PATCH \/memos\/{\u30e1\u30e2\u306eID}<\/code><\/li>\n<li>\u30e1\u30e2\u306e\u524a\u9664: <code>DELETE \/memos\/{\u30e1\u30e2\u306eID}<\/code><\/li>\n<\/ul>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u3001<strong>HTTP\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u3068\u3001\u3069\u306e\u30e1\u30e2\u306e\u30c7\u30fc\u30bf\uff08\u30ea\u30bd\u30fc\u30b9\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u304b\u3092URL\u3067\u8868\u3057\u3066\u3044\u308b<\/strong>\u3053\u3068\u3067\u3059\uff08\u30e1\u30e2\u5168\u4f53\u3067\u3042\u308c\u3070<code>memos<\/code>\u3001\u5168\u4f53\u306e\u4e2d\u306e1\u3064\u306e\u30e1\u30e2\u3067\u3042\u308c\u3070<code>memos\/{\u30e1\u30e2\u306eID}<\/code>\uff09\u3002<\/p>\n<h3 id=\"%E6%BA%96%E5%82%99\" tabindex=\"-1\">\u6e96\u5099<\/h3>\n<p>\u74b0\u5883\u69cb\u7bc9\u305a\u307f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u3042\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5909\u66f4\u3057\u306a\u304c\u3089\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u300c\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u300d\u30ea\u30f3\u30af\u304b\u3089GitHub\u306e\u30da\u30fc\u30b8\u3092\u958b\u304d\u307e\u3059\u3002\n<\/li>\n<li>GitHub\u306e\u300cCode\u300d\u2192\u300cDownload ZIP\u300d\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/li>\n<li>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067<code>npm install<\/code>\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" srcset=\"https:\/\/ics.media\/entry\/251002\/images\/251002_download_from_git.png 1920w, https:\/\/ics.media\/entry\/251002\/images\/251002_download_from_git__960.png 960w\" src=\"https:\/\/ics.media\/entry\/251002\/images\/251002_download_from_git.png\" sizes=\"auto, (max-width:720px) 100vw, 720px\" width=\"1920\" height=\"1080\" alt=\"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u624b\u9806\" loading=\"lazy\"\/><\/p>\n<p>\u5b8c\u6210\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u304c\u3042\u308c\u3070\u3053\u3061\u3089\u3082\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 id=\"1.-%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%82%92%E4%BD%9C%E3%82%8B\" tabindex=\"-1\">1. \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u308b<\/h3>\n<p>SQLite\u3068TypeORM\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4 id=\"%E2%91%A0%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%82%92%E5%AE%9A%E7%BE%A9%E3%81%99%E3%82%8B\" tabindex=\"-1\">\u2460\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u5b9a\u7fa9\u3059\u308b<\/h4>\n<ol>\n<li><code>backend<\/code>\u914d\u4e0b\u306b<code>db<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u3053\u306b\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff08<code>memo.sqlite<\/code>\uff09\u304c\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\n<ul>\n<li>\u5f8c\u8ff0\u3059\u308b<code>MemoModule<\/code>\u3067\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u540c\u3058<code>db<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<code>memo.entity.ts<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u3053\u306b\u4fdd\u5b58\u3059\u308b\u30c7\u30fc\u30bf\u306e\u8a73\u7d30\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\n<ul>\n<li>\u30a2\u30d7\u30ea\u3067\u306f\u30e1\u30e2\u306eID\u3001\u30bf\u30a4\u30c8\u30eb\u3001\u5185\u5bb9\u3001\u4f5c\u6210\u65e5\u6642\u3001\u66f4\u65b0\u65e5\u6642\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u9805\u76ee\u3068\u30c7\u30fc\u30bf\u578b\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u25bc<code>memo.entity.ts<\/code><\/p>\n<pre><code class=\"hljs language-ts\"><span class=\"hljs-keyword\">import<\/span> { <span class=\"hljs-title class_\">Entity<\/span>, <span class=\"hljs-title class_\">Column<\/span>, <span class=\"hljs-title class_\">PrimaryGeneratedColumn<\/span> } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\"typeorm\"<\/span>;\n\n\n<span class=\"hljs-meta\">@Entity<\/span>()\n<span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Memo<\/span> {\n  \n  <span class=\"hljs-meta\">@PrimaryGeneratedColumn<\/span>()\n  <span class=\"hljs-attr\">id<\/span>: <span class=\"hljs-built_in\">number<\/span>;\n\n  \n  <span class=\"hljs-meta\">@Column<\/span>()\n  <span class=\"hljs-attr\">title<\/span>: <span class=\"hljs-built_in\">string<\/span>;\n\n  \n  <span class=\"hljs-meta\">@Column<\/span>()\n  <span class=\"hljs-attr\">content<\/span>: <span class=\"hljs-built_in\">string<\/span>;\n\n  \n  <span class=\"hljs-meta\">@Column<\/span>()\n  <span class=\"hljs-attr\">createdAt<\/span>: <span class=\"hljs-title class_\">Date<\/span>;\n\n  \n  <span class=\"hljs-meta\">@Column<\/span>()\n  <span class=\"hljs-attr\">updatedAt<\/span>: <span class=\"hljs-title class_\">Date<\/span>;\n}\n<\/code><\/pre>\n<p><code>@Entity<\/code>\u3084<code>@Column<\/code>\u306f\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u306b\u306f\u3001TypeScript\u306e\u3082\u306e\uff08\u65e7\u4ed5\u69d8\uff09\u3068ECMAScript\u6a19\u6e96\u306e\u3082\u306e\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u5225\u7269\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u524d\u8005\uff08TypeScript\u306e\u65e7\u4ed5\u69d8\u306e\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\uff09\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u6a5f\u80fd\u306e\u8ffd\u52a0\u3084\u5909\u66f4\u3092\u884c\u3048\u307e\u3059\u30021\u30641\u3064\u306e\u8aac\u660e\u306f\u5272\u611b\u3057\u307e\u3059\u304c\u3001\u306a\u3093\u3068\u306a\u304f\u305d\u308c\u305e\u308c\u306e\u9805\u76ee\u304c\u3069\u3093\u306a\u578b\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5b9a\u7fa9\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h3 id=\"2.-rest-api%E3%82%92%E4%BD%9C%E3%82%8B\" tabindex=\"-1\">2. REST API\u3092\u4f5c\u308b<\/h3>\n<p>\u524d\u7de8\u3067\u3082\u89e6\u308c\u307e\u3057\u305f\u304c\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306f\u4e3b\u306b\u300c\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\uff08\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308b\uff09\u300d\u3068\u300c\u30b5\u30fc\u30d3\u30b9\uff08\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u3092\u884c\u3046\uff09\u300d2\u3064\u306e\u7a2e\u985e\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u4eca\u56de\u3082\u3053\u306e2\u3064\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"%E2%91%A0memoservice%E3%82%92%E4%BD%9C%E3%82%8B\" tabindex=\"-1\">\u2460MemoService\u3092\u4f5c\u308b<\/h4>\n<ol>\n<li><code>src\/memo.service.ts<\/code>\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u3067\u3001\u5148\u307b\u3069\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092inject\uff08\u6ce8\u5165\uff09\u3057\u3066<code>memoRepository<\/code>\u3092\u4f5c\u308a\u307e\u3059\u3002\n<ul>\n<li>\u3053\u306e<code>memoRepository<\/code>\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u4fdd\u5b58\u3001\u524a\u9664\u306a\u3069\u306e\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u25bc<code>memo.service.ts<\/code><\/p>\n<pre><code class=\"hljs language-ts\"><span class=\"hljs-keyword\">import<\/span> { <span class=\"hljs-title class_\">Injectable<\/span> } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\"@nestjs\/common\"<\/span>;\n<span class=\"hljs-keyword\">import<\/span> { <span class=\"hljs-title class_\">InjectRepository<\/span> } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\"@nestjs\/typeorm\"<\/span>;\n<span class=\"hljs-keyword\">import<\/span> { <span class=\"hljs-title class_\">Repository<\/span> } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\"typeorm\"<\/span>;\n<span class=\"hljs-keyword\">import<\/span> { <span class=\"hljs-title class_\">Memo<\/span> } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\"..\/db\/memo.entity\"<\/span>;\n\n\n<span class=\"hljs-meta\">@Injectable<\/span>()\n<span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">MemoService<\/span> {\n\n   \n  <span class=\"hljs-title function_\">constructor<\/span>(<span class=\"hljs-params\">\n    <span class=\"hljs-meta\">@InjectRepository<\/span>(Memo)\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-attr\">memoRepository<\/span>: <span class=\"hljs-title class_\">Repository<\/span>Memo<\/span>&gt;,\n  ) {}\n}\n<\/code><\/pre>\n<h4 id=\"%E2%91%A1memoservice%E3%81%AB%E3%83%A1%E3%83%A2%E3%82%92%E7%99%BB%E9%8C%B2%E3%81%99%E3%82%8B%E5%87%A6%E7%90%86%E3%82%92%E6%9B%B8%E3%81%8F\" tabindex=\"-1\">\u2461MemoService\u306b\u30e1\u30e2\u3092\u767b\u9332\u3059\u308b\u51e6\u7406\u3092\u66f8\u304f<\/h4>\n<p>\u30e1\u30e2\u30921\u4ef6\u767b\u9332\u3059\u308b\u51e6\u7406\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<ol>\n<li><code>MemoService<\/code>\u306b<code>create()<\/code>\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308a\u307e\u3059\u3002<\/li>\n<li><code>memoRepository<\/code>\u3092\u4f7f\u3063\u3066\u4fdd\u5b58\u3059\u308b\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u25bc<code>memo.service.ts<\/code><\/p>\n<pre><code class=\"hljs language-ts\"><span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">MemoService<\/span> {\n  \n\n  \n  <span class=\"hljs-keyword\">async<\/span> <span class=\"hljs-title function_\">create<\/span>(<span class=\"hljs-attr\">memo<\/span>: { <span class=\"hljs-attr\">title<\/span>: <span class=\"hljs-built_in\">string<\/span>; <span class=\"hljs-attr\">content<\/span>: <span class=\"hljs-built_in\">string<\/span> }): <span class=\"hljs-title class_\">Promise<\/span>Memo&gt; {\n    <span class=\"hljs-keyword\">const<\/span> newMemo = <span class=\"hljs-variable language_\">this<\/span>.<span class=\"hljs-property\">memoRepository<\/span>.<span class=\"hljs-title function_\">create<\/span>({\n      <span class=\"hljs-attr\">title<\/span>: memo.<span class=\"hljs-property\">title<\/span>,\n      <span class=\"hljs-attr\">content<\/span>: memo.<span class=\"hljs-property\">content<\/span>,\n      <span class=\"hljs-attr\">createdAt<\/span>: <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Date<\/span>(),\n      <span class=\"hljs-attr\">updatedAt<\/span>: <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Date<\/span>(),\n    });\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-variable language_\">this<\/span>.<span class=\"hljs-property\">memoRepository<\/span>.<span class=\"hljs-title function_\">save<\/span>(newMemo);\n  }\n}\n<\/code><\/pre>\n<p><code>memoRepository.create()<\/code>\u3084<code>save()<\/code>\u306fTypeORM\u306e\u30d3\u30eb\u30c8\u30a4\u30f3\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u5358\u7d14\u3067\u3001<code>memoRepository.create()<\/code>\u3067<code>newMemo<\/code>\u3092\u4f5c\u308a\u3001<code>memoRepository.save()<\/code>\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4 id=\"%E2%91%A2%E6%AE%8B%E3%82%8A%E3%81%AE%E5%87%A6%E7%90%86%E3%82%92%E6%9B%B8%E3%81%8F\" tabindex=\"-1\">\u2462\u6b8b\u308a\u306e\u51e6\u7406\u3092\u66f8\u304f<\/h4>\n<p>\u6b8b\u308a\u306e\u51e6\u7406\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<a target=\"_blank\" href=\"https:\/\/github.com\/ics-creative\/251009_memoapp-sample-complete\/blob\/main\/backend\/src\/memo.service.ts\" target=\"_blank\">\u5b8c\u6210\u5f8c\u306eMemoService<\/a>\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u3061\u3089\u3092\u30b3\u30d4\u30da\u3057\u307e\u3057\u3087\u3046\u3002\u3082\u3061\u308d\u3093\u81ea\u529b\u3067\u66f8\u3044\u3066\u3082OK\u3067\u3059\uff01<\/p>\n<ol>\n<li>\u30e1\u30e2\u5168\u4ef6\u3092\u53d6\u5f97<\/li>\n<li>\u30e1\u30e2\u30921\u4ef6\u53d6\u5f97<\/li>\n<li>\u30e1\u30e2\u306e\u66f4\u65b0<\/li>\n<li>\u30e1\u30e2\u306e\u524a\u9664<\/li>\n<\/ol>\n<p>\u3053\u308c\u3067\u30b5\u30fc\u30d3\u30b9\u306e\u4f5c\u6210\u306f\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<h4 id=\"%E2%91%A3memocontroller%E3%82%92%E4%BD%9C%E3%82%8B\" tabindex=\"-1\">\u2463MemoController\u3092\u4f5c\u308b<\/h4>\n<p>\u6b21\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u51e6\u7406\u3067\u3059\u3002\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089\u9001\u3063\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u6e21\u308a\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u51e6\u7406\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li><code>src\/memo.controller.ts<\/code>\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>\u5192\u982d\u306e<code>@Controller()<\/code>\u306e<code>()<\/code>\u306e\u4e2d\u306b<code>\"\/memos\"<\/code>\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u30d9\u30fc\u30b9URL\u306b\u5f53\u305f\u308a\u307e\u3059\u3002\n<ul>\n<li>\u305f\u3068\u3048\u3070\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089<code>https:\/\/localhost:3000\/memos<\/code>\u306b\u9001\u3089\u308c\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306f<code>MemoController<\/code>\u304c\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u25bc<code>memo.controller.ts<\/code><\/p>\n<pre><code class=\"hljs language-ts\">\n<span class=\"hljs-meta\">@Controller<\/span>(<span class=\"hljs-string\">\"\/memos\"<\/span>) \n<span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">MemoController<\/span> {\n  <span class=\"hljs-title function_\">constructor<\/span>(<span class=\"hljs-params\"><span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">readonly<\/span> <span class=\"hljs-attr\">memoService<\/span>: <span class=\"hljs-title class_\">MemoService<\/span><\/span>) {}\n\n  \n}\n<\/code><\/pre>\n<h4 id=\"%E2%91%A4memocontroller%E3%81%AB%E3%83%A1%E3%83%A2%E3%82%92%E6%9B%B4%E6%96%B0%E3%81%99%E3%82%8B%E5%87%A6%E7%90%86%E3%82%92%E6%9B%B8%E3%81%8F\" tabindex=\"-1\">\u2464MemoController\u306b\u30e1\u30e2\u3092\u66f4\u65b0\u3059\u308b\u51e6\u7406\u3092\u66f8\u304f<\/h4>\n<p>\u5192\u982d\u3067\u30e1\u30e2\u30a2\u30d7\u30ea\u306eREST API\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u8a08\u3057\u307e\u3057\u305f\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u5b9a\u7fa9\u306b\u5bfe\u3057\u30661\u3064\u306e\u95a2\u6570\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30e1\u30e2\u306e\u4f5c\u6210: <code>POST \/memos<\/code><\/li>\n<li>\u30e1\u30e2\u306e\u53d6\u5f97:\n<ul>\n<li>\u4e00\u89a7: <code>GET \/memos<\/code><\/li>\n<li>\u7279\u5b9a\u306e\u30e1\u30e2: <code>GET \/memos\/{\u30e1\u30e2\u306eID}<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u30e1\u30e2\u306e\u66f4\u65b0: <code>PATCH \/memos\/{\u30e1\u30e2\u306eID}<\/code><\/li>\n<li>\u30e1\u30e2\u306e\u524a\u9664: <code>DELETE \/memos\/{\u30e1\u30e2\u306eID}<\/code><\/li>\n<\/ul>\n<p>\u6700\u521d\u306b\u300c\u30e1\u30e2\u306e\u66f4\u65b0\u300d\u51e6\u7406\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30dd\u30a4\u30f3\u30c8\u306f3\u3064\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u95a2\u6570\u306e\u982d\u306b\u5bfe\u5fdc\u3055\u305b\u305f\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u306eHTTP\u30e1\u30bd\u30c3\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\uff08<code>@Patch()<\/code>\uff09<\/li>\n<li><code>()<\/code>\u306e\u4e2d\u306b\u30d9\u30fc\u30b9URL\u306b\u7d9a\u304fURL\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n<ul>\n<li><code>\/memos\/{\u30e1\u30e2\u306eID}<\/code>\u306e\u30e1\u30e2\u306eID\u306e\u90e8\u5206\u306f\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u547c\u3073\u307e\u3059\u3002\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306f<code>:id<\/code>\u306e\u3088\u3046\u306b\u8a18\u8f09\u3057\u307e\u3059\u3002<\/li>\n<li>\u66f4\u65b0\u3057\u305f\u3044\u30e1\u30e2\u306eID\u304c\u3053\u306e<code>:id<\/code>\u90e8\u5206\u306b\u6e21\u3063\u3066\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u3092\u5f15\u6570\u3067\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002\uff08<code>@Param<\/code>\u3084<code>@Body<\/code>\u306e\u90e8\u5206\uff09<\/li>\n<\/ol>\n<p><code>@Controller<\/code>\u306a\u3069\u306e\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u306e\u8aac\u660e\u306f<a target=\"_blank\" href=\"https:\/\/ics.media\/entry\/250925\/#%E2%91%A0%E4%BD%9C%E6%88%90%E3%81%95%E3%82%8C%E3%81%9F%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E7%A2%BA%E8%AA%8D\">\u524d\u7de8<\/a>\u3067\u8efd\u304f\u89e6\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u6c17\u306b\u306a\u308b\u65b9\u306f\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306e1\u30641\u3064\u3092\u5b8c\u74a7\u306b\u7406\u89e3\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<strong>Controller\u306e\u5404\u95a2\u6570\u3067\u3069\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308b\u304b\u3092\u5b9a\u7fa9\u3057\u3001\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u3092\u53d7\u3051\u53d6\u308b\u6d41\u308c\u3092\u3056\u3063\u304f\u308a\u3068\u628a\u63e1\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/strong><\/p>\n<p>\u25bc<code>memo.controller.ts<\/code><\/p>\n<pre><code class=\"hljs language-ts\"><span class=\"hljs-keyword\">import<\/span> {\n  <span class=\"hljs-title class_\">Body<\/span>,\n  <span class=\"hljs-title class_\">Controller<\/span>,\n  <span class=\"hljs-title class_\">Param<\/span>,\n  <span class=\"hljs-title class_\">Patch<\/span>,\n} <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\"@nestjs\/common\"<\/span>;\n<span class=\"hljs-keyword\">import<\/span> { <span class=\"hljs-title class_\">MemoService<\/span> } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\".\/memo.service\"<\/span>;\n<span class=\"hljs-keyword\">import<\/span> { <span class=\"hljs-title class_\">Memo<\/span> } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">\"..\/db\/memo.entity\"<\/span>;\n\n<span class=\"hljs-meta\">@Controller<\/span>(<span class=\"hljs-string\">\"\/memos\"<\/span>)\n<span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">MemoController<\/span> {\n\n\n  \n  <span class=\"hljs-meta\">@Patch<\/span>(<span class=\"hljs-string\">\":id\"<\/span>)\n  <span class=\"hljs-title function_\">updateMemo<\/span>(\n    <span class=\"hljs-meta\">@Param<\/span>(<span class=\"hljs-string\">\"id\"<\/span>) <span class=\"hljs-attr\">id<\/span>: <span class=\"hljs-built_in\">number<\/span>,\n    <span class=\"hljs-meta\">@Body<\/span>() <span class=\"hljs-attr\">memo<\/span>: { <span class=\"hljs-attr\">title<\/span>: <span class=\"hljs-built_in\">string<\/span>; <span class=\"hljs-attr\">content<\/span>: <span class=\"hljs-built_in\">string<\/span> },\n  ): <span class=\"hljs-title class_\">Promise<\/span>Memo | <span class=\"hljs-literal\">null<\/span>&gt; {\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-variable language_\">this<\/span>.<span class=\"hljs-property\">memoService<\/span>.<span class=\"hljs-title function_\">update<\/span>(id, memo);\n  }\n}\n<\/code><\/pre>\n<h4 id=\"%E2%91%A5%E6%AE%8B%E3%82%8A%E3%81%AE%E5%87%A6%E7%90%86%E3%82%92%E6%9B%B8%E3%81%8F\" tabindex=\"-1\">\u2465\u6b8b\u308a\u306e\u51e6\u7406\u3092\u66f8\u304f<\/h4>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u6b8b\u308a\u306e\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002<a target=\"_blank\" href=\"https:\/\/github.com\/ics-creative\/251009_memoapp-sample-complete\/blob\/main\/backend\/src\/memo.controller.ts\" target=\"_blank\">\u5b8c\u6210\u5f8c\u306eMemoController<\/a>\u3092\u30b3\u30d4\u30da\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u3061\u3089\u3082\u81ea\u529b\u3067\u66f8\u304d\u305f\u3044\u65b9\u306f\u305c\u3072\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<h4 id=\"%E2%91%A6memomodule%E3%81%AE%E8%A8%AD%E5%AE%9A\" tabindex=\"-1\">\u2466MemoModule\u306e\u8a2d\u5b9a<\/h4>\n<p>\u4eca\u307e\u3067\u66f8\u3044\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30b5\u30fc\u30d3\u30b9\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u767b\u9332\u3057\u307e\u3059\u3002\u3053\u308c\u306fNestJS\u56fa\u6709\u306e\u8a2d\u5b9a\u306a\u306e\u3067\u8a73\u3057\u3044\u8aac\u660e\u306f\u5272\u611b\u3057\u307e\u3059\u3002<code>src\/memo.module.ts<\/code>\u306b<a target=\"_blank\" href=\"https:\/\/github.com\/ics-creative\/251009_memoapp-sample-complete\/blob\/main\/backend\/src\/memo.module.ts\" target=\"_blank\">\u5b8c\u6210\u5f8c\u306eMemoModule<\/a>\u306e\u4e2d\u8eab\u3092\u30b3\u30d4\u30da\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n<h4 id=\"%E3%81%8A%E3%81%95%E3%82%89%E3%81%84\" tabindex=\"-1\">\u304a\u3055\u3089\u3044<\/h4>\n<p>\u3053\u3053\u307e\u3067\u306e\u51e6\u7406\u306e\u6d41\u308c\u3092\u304a\u3055\u3089\u3044\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code>MemoController<\/code>\u304c\u9001\u3089\u308c\u3066\u304d\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308a\u3001\u5bfe\u5fdc\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304b\u3089<code>MemoService<\/code>\u304c\u547c\u3070\u308c\u3001\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u30fb\u66f4\u65b0\u306a\u3069\u306e\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f<code>memo.sqlite<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" srcset=\"https:\/\/ics.media\/entry\/251002\/images\/251002_backend_flow.png 1920w, https:\/\/ics.media\/entry\/251002\/images\/251002_backend_flow__960.png 960w\" src=\"https:\/\/ics.media\/entry\/251002\/images\/251002_backend_flow.png\" sizes=\"auto, (max-width:720px) 100vw, 720px\" width=\"1920\" height=\"1080\" alt=\"\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u6d41\u308c\" loading=\"lazy\"\/><\/p>\n<h3 id=\"3.-%E3%83%95%E3%83%AD%E3%83%B3%E3%83%88%E3%82%A8%E3%83%B3%E3%83%89%E3%82%92%E4%BD%9C%E3%82%8B\" tabindex=\"-1\">3. \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092\u4f5c\u308b<\/h3>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u4f5c\u6210\u305a\u307f\u306a\u306e\u3067\u3001REST API\u3092\u547c\u3073\u51fa\u3059\u51e6\u7406\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4 id=\"%E2%91%A0%E3%83%A1%E3%83%A2%E3%82%92%E6%9B%B4%E6%96%B0%E3%81%99%E3%82%8B%E5%87%A6%E7%90%86%E3%82%92%E6%9B%B8%E3%81%8F\" tabindex=\"-1\">\u2460\u30e1\u30e2\u3092\u66f4\u65b0\u3059\u308b\u51e6\u7406\u3092\u66f8\u304f<\/h4>\n<ol>\n<li><code>frontend\/src\/logics\/handleApi.ts<\/code>\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>\u30e1\u30e2\u3092\u66f4\u65b0\u3059\u308b\u51e6\u7406<code>updateMemo()<\/code>\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p><code>updateMemo()<\/code>\u95a2\u6570\u306f\u66f4\u65b0\u3059\u308b\u30e1\u30e2ID\u3001\u30bf\u30a4\u30c8\u30eb\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53d7\u3051\u53d6\u308a\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308a\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f<a target=\"_blank\" href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/Fetch_API\/Using_Fetch\" target=\"_blank\">\u30d5\u30a7\u30c3\u30c1API<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u6ce8\u76ee\u3059\u3079\u304d\u306f<code>fetch()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u7b2c2\u5f15\u6570\u3067\u3059\u3002<\/p>\n<p>\u7b2c2\u5f15\u6570\u306f<code>RequestInit<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002\u30d5\u30a7\u30c3\u30c1\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u969b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u3053\u3067HTTP\u30e1\u30bd\u30c3\u30c9\u3084\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\uff08\u4eca\u56de\u306fjson\u3067\u9001\u308b\u306e\u3067<code>\"Content-Type\": \"application\/json\"<\/code>\u3092\u6307\u5b9a\uff09\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\uff08<code>body: JSON.stringify(memo)<\/code>\uff09\u306a\u3069\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>\u25bc<code>handleApi.ts<\/code><\/p>\n<pre><code class=\"hljs language-ts\">\n<span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">const<\/span> updateMemo = <span class=\"hljs-title function_\">async<\/span> (\n  <span class=\"hljs-attr\">id<\/span>: <span class=\"hljs-built_in\">number<\/span>,\n  <span class=\"hljs-attr\">memo<\/span>: {\n    <span class=\"hljs-attr\">title<\/span>?: <span class=\"hljs-built_in\">string<\/span>;\n    <span class=\"hljs-attr\">content<\/span>?: <span class=\"hljs-built_in\">string<\/span>;\n  },\n): <span class=\"hljs-title class_\">Promise<\/span>Memo&gt; =&gt; {\n  <span class=\"hljs-keyword\">const<\/span> response = <span class=\"hljs-keyword\">await<\/span> <span class=\"hljs-title function_\">fetch<\/span>(<span class=\"hljs-string\">`<span class=\"hljs-subst\">${API_BASE_URL}<\/span>\/memos\/<span class=\"hljs-subst\">${id}<\/span>`<\/span>, {\n    <span class=\"hljs-attr\">method<\/span>: <span class=\"hljs-string\">\"PATCH\"<\/span>,\n    <span class=\"hljs-attr\">headers<\/span>: {\n      <span class=\"hljs-string\">\"Content-Type\"<\/span>: <span class=\"hljs-string\">\"application\/json\"<\/span>,\n    },\n    <span class=\"hljs-attr\">body<\/span>: <span class=\"hljs-title class_\">JSON<\/span>.<span class=\"hljs-title function_\">stringify<\/span>(memo),\n  });\n  <span class=\"hljs-keyword\">if<\/span> (!response.<span class=\"hljs-property\">ok<\/span>) <span class=\"hljs-keyword\">throw<\/span> <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Error<\/span>(<span class=\"hljs-string\">\"Failed to update memo\"<\/span>);\n  <span class=\"hljs-keyword\">return<\/span> response.<span class=\"hljs-title function_\">json<\/span>();\n};\n<\/code><\/pre>\n<p>\u3053\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u5148\u307b\u3069\u4f5c\u3063\u305f<code>memo.controller.ts<\/code>\u306e<code>updateMemo()<\/code>\u304c\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<code>PATCH<\/code>\u30e1\u30bd\u30c3\u30c9\u3067<code>\/memos\/{\u30e1\u30e2\u306eID}<\/code>\u5b9b\u306b\u9001\u3089\u308c\u305f\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u9593\u3067\u30c7\u30fc\u30bf\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u3053\u3068\u3067\u30a2\u30d7\u30ea\u304c\u52d5\u304d\u307e\u3059\u3002<\/p>\n<h4 id=\"%E2%91%A1%E6%AE%8B%E3%82%8A%E3%81%AE%E5%87%A6%E7%90%86%E3%82%92%E5%AE%9F%E8%A3%85%E3%81%99%E3%82%8B\" tabindex=\"-1\">\u2461\u6b8b\u308a\u306e\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b<\/h4>\n<p>\u6b8b\u308a\u306e\u51e6\u7406\u3082\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<ol>\n<li>\u30e1\u30e2\u30921\u4ef6\u4f5c\u6210<\/li>\n<li>\u30e1\u30e2\u5168\u4ef6\u306e\u53d6\u5f97<\/li>\n<li>\u30e1\u30e2\u30921\u4ef6\u53d6\u5f97<\/li>\n<li>\u30e1\u30e2\u306e\u524a\u9664<\/li>\n<\/ol>\n<p><a target=\"_blank\" href=\"https:\/\/github.com\/ics-creative\/251009_memoapp-sample-complete\/blob\/main\/frontend\/src\/logics\/handleApi.ts\" target=\"_blank\">\u5b8c\u6210\u5f8c\u306ehandleApi.ts\u306f\u3053\u3061\u3089<\/a>\u3067\u3059\u3002\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 id=\"4.-%E3%82%A2%E3%83%97%E3%83%AA%E3%82%92%E5%8B%95%E3%81%8B%E3%81%97%E3%81%A6%E3%81%BF%E3%82%88%E3%81%86\" tabindex=\"-1\">4. \u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3057\u3066\u307f\u3088\u3046<\/h3>\n<p>\u4f5c\u3063\u305f\u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01\u3000\u3046\u307e\u304f\u52d5\u304f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<pre><code class=\"hljs language-bash\">\nnpm run dev:backend\n<\/code><\/pre>\n<pre><code class=\"hljs language-bash\">\nnpm run dev:frontend\n<\/code><\/pre>\n<h4 id=\"cors%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%AE%E3%82%B1%E3%82%A2%E3%82%92%E5%BF%98%E3%82%8C%E3%81%9A%E3%81%AB\" tabindex=\"-1\">CORS\u30a8\u30e9\u30fc\u306e\u30b1\u30a2\u3092\u5fd8\u308c\u305a\u306b<\/h4>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\u3053\u306e\u307e\u307e\u3060\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u524d\u7de8\u3067\u3082\u767a\u751f\u3057\u305fCORS\u30a8\u30e9\u30fc\u3067\u3059\u3002\u524d\u7de8\u3068\u540c\u69d8\u306b\u3001<code>\/backend\/src\/main.ts<\/code>\u306b\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u25bc<code>main.ts<\/code><\/p>\n<pre><code class=\"hljs language-ts\">\napp.<span class=\"hljs-title function_\">enableCors<\/span>({\n  <span class=\"hljs-attr\">origin<\/span>: <span class=\"hljs-string\">\"http:\/\/localhost:5173\"<\/span>, \n  <span class=\"hljs-attr\">methods<\/span>: [<span class=\"hljs-string\">\"GET\"<\/span>, <span class=\"hljs-string\">\"POST\"<\/span>, <span class=\"hljs-string\">\"PATCH\"<\/span>, <span class=\"hljs-string\">\"DELETE\"<\/span>],\n  <span class=\"hljs-attr\">credentials<\/span>: <span class=\"hljs-literal\">true<\/span>,\n});\n<\/code><\/pre>\n<h4 id=\"%E5%AE%8C%E6%88%90\" tabindex=\"-1\">\u5b8c\u6210<\/h4>\n<p>\u3064\u3044\u306b\u30a2\u30d7\u30ea\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\uff01\u3000\u30e1\u30e2\u306e\u4f5c\u6210\u3001\u66f4\u65b0\u3001\u524a\u9664\u306a\u3069\u306e\u64cd\u4f5c\u3092\u5b9f\u969b\u306b\u78ba\u304b\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" srcset=\"https:\/\/ics.mediahttps:\/\/ics.media\/entry\/251002\/images\/251002_memoapp.gif 1920w\" src=\"https:\/\/ics.media\/entry\/251002\/images\/251002_memoapp.gif\" sizes=\"auto, (max-width:720px) 100vw, 720px\" width=\"1920\" height=\"1080\" alt=\"\u30e1\u30e2\u30a2\u30d7\u30ea\" loading=\"lazy\"\/><\/p>\n<h3 id=\"%E3%81%BE%E3%81%A8%E3%82%81\" tabindex=\"-1\">\u307e\u3068\u3081<\/h3>\n<p>\u524d\u7de8\u3067\u306f\u7c21\u5358\u306aREST API\u3092\u3001\u5f8c\u7de8\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u69cb\u7bc9\u3057\u3066\u30a2\u30d7\u30ea\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u4ed5\u7d44\u307f\u304c\u7406\u89e3\u3067\u304d\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3068\u672c\u683c\u7684\u306a\u30a2\u30d7\u30ea\u3092\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306a\u3069\u3001\u3055\u3089\u306b\u591a\u304f\u306e\u77e5\u8b58\u304c\u6c42\u3081\u3089\u308c\u308b\u305f\u3081\u3001\u307e\u3060\u307e\u3060\u5b66\u7fd2\u3059\u3079\u304d\u3053\u3068\u306f\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002\u7b46\u8005\u3082\u52c9\u5f37\u4e2d\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u5b66\u7fd2\u306b\u8e0f\u307f\u51fa\u3059\u306f\u3058\u3081\u306e\u4e00\u6b69\u3068\u306a\u308c\u3070\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<h3 id=\"%E5%8F%82%E8%80%83%E3%82%B5%E3%82%A4%E3%83%88%E3%83%BB%E6%9B%B8%E7%B1%8D\" tabindex=\"-1\">\u53c2\u8003\u30b5\u30a4\u30c8\u30fb\u66f8\u7c4d<\/h3>\n<\/div>\n\n<br \/><a href=\"https:\/\/ics.media\/entry\/251002\/\">\u5143\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3059\u308b <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u3067\u306ffetch()\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3092\u4f7f\u3063\u3066REST API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u51e6\u7406\u3092\u66f8\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u3089\u308c\u305f\u5148\u3067\u52d5\u304f\u306e\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u4ed5\u7d44\u307f\u3092\u3088\u304f\u77e5\u3089\u306a\u3044\u82e5\u624b\u30d5\u30ed [&hellip;]","protected":false},"author":1,"featured_media":7877,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-7876","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hatena-blog"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 - ICS MEDIA - \u30dd\u30b1\u30b3\u30f3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ics.media\/entry\/251002\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 - ICS MEDIA - \u30dd\u30b1\u30b3\u30f3\" \/>\n<meta property=\"og:description\" content=\"\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u3067\u306ffetch()\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3092\u4f7f\u3063\u3066REST API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u51e6\u7406\u3092\u66f8\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u3089\u308c\u305f\u5148\u3067\u52d5\u304f\u306e\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u4ed5\u7d44\u307f\u3092\u3088\u304f\u77e5\u3089\u306a\u3044\u82e5\u624b\u30d5\u30ed [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ics.media\/entry\/251002\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30dd\u30b1\u30b3\u30f3\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-02T18:00:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/eyecatch.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"info@pokecon.jp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"info@pokecon.jp\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/7876\\\/\"},\"author\":{\"name\":\"info@pokecon.jp\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\"},\"headline\":\"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 &#8211; ICS MEDIA\",\"datePublished\":\"2025-10-02T18:00:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/7876\\\/\"},\"wordCount\":104,\"image\":{\"@id\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/eyecatch.jpg\",\"articleSection\":[\"\u306f\u3066\u306a\u30d6\u30ed\u30b0\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/7876\\\/\",\"url\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/\",\"name\":\"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 - ICS MEDIA - \u30dd\u30b1\u30b3\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/eyecatch.jpg\",\"datePublished\":\"2025-10-02T18:00:23+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/#primaryimage\",\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/eyecatch.jpg\",\"contentUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/eyecatch.jpg\",\"width\":1280,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ics.media\\\/entry\\\/251002\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 &#8211; ICS MEDIA\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#website\",\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/\",\"name\":\"\u30dd\u30b1\u30b3\u30f3\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\",\"name\":\"info@pokecon.jp\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"caption\":\"info@pokecon.jp\"},\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/author\\\/infopokecon-jp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 - ICS MEDIA - \u30dd\u30b1\u30b3\u30f3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ics.media\/entry\/251002\/","og_locale":"ja_JP","og_type":"article","og_title":"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 - ICS MEDIA - \u30dd\u30b1\u30b3\u30f3","og_description":"\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u3067\u306ffetch()\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3092\u4f7f\u3063\u3066REST API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u51e6\u7406\u3092\u66f8\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u3089\u308c\u305f\u5148\u3067\u52d5\u304f\u306e\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u4ed5\u7d44\u307f\u3092\u3088\u304f\u77e5\u3089\u306a\u3044\u82e5\u624b\u30d5\u30ed [&hellip;]","og_url":"https:\/\/ics.media\/entry\/251002\/","og_site_name":"\u30dd\u30b1\u30b3\u30f3","article_published_time":"2025-10-02T18:00:23+00:00","og_image":[{"width":1280,"height":512,"url":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/eyecatch.jpg","type":"image\/jpeg"}],"author":"info@pokecon.jp","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"info@pokecon.jp","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ics.media\/entry\/251002\/#article","isPartOf":{"@id":"https:\/\/pokecon.jp\/job\/7876\/"},"author":{"name":"info@pokecon.jp","@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997"},"headline":"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 &#8211; ICS MEDIA","datePublished":"2025-10-02T18:00:23+00:00","mainEntityOfPage":{"@id":"https:\/\/pokecon.jp\/job\/7876\/"},"wordCount":104,"image":{"@id":"https:\/\/ics.media\/entry\/251002\/#primaryimage"},"thumbnailUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/eyecatch.jpg","articleSection":["\u306f\u3066\u306a\u30d6\u30ed\u30b0"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/pokecon.jp\/job\/7876\/","url":"https:\/\/ics.media\/entry\/251002\/","name":"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 - ICS MEDIA - \u30dd\u30b1\u30b3\u30f3","isPartOf":{"@id":"https:\/\/pokecon.jp\/job\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ics.media\/entry\/251002\/#primaryimage"},"image":{"@id":"https:\/\/ics.media\/entry\/251002\/#primaryimage"},"thumbnailUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/eyecatch.jpg","datePublished":"2025-10-02T18:00:23+00:00","author":{"@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997"},"breadcrumb":{"@id":"https:\/\/ics.media\/entry\/251002\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ics.media\/entry\/251002\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/ics.media\/entry\/251002\/#primaryimage","url":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/eyecatch.jpg","contentUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/eyecatch.jpg","width":1280,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/ics.media\/entry\/251002\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/pokecon.jp\/job\/"},{"@type":"ListItem","position":2,"name":"\u82e5\u624b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u305f\u3081\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5165\u9580\uff08\u5f8c\u7de8\uff09 &#8211; ICS MEDIA"}]},{"@type":"WebSite","@id":"https:\/\/pokecon.jp\/job\/#website","url":"https:\/\/pokecon.jp\/job\/","name":"\u30dd\u30b1\u30b3\u30f3","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pokecon.jp\/job\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997","name":"info@pokecon.jp","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","caption":"info@pokecon.jp"},"url":"https:\/\/pokecon.jp\/job\/author\/infopokecon-jp\/"}]}},"_links":{"self":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/7876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/comments?post=7876"}],"version-history":[{"count":1,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/7876\/revisions"}],"predecessor-version":[{"id":7878,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/7876\/revisions\/7878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/media\/7877"}],"wp:attachment":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/media?parent=7876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/categories?post=7876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/tags?post=7876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}