{"id":392,"date":"2017-08-09T15:15:07","date_gmt":"2017-08-09T06:15:07","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/08\/09\/redux-with-rest-api"},"modified":"2017-08-09T15:15:07","modified_gmt":"2017-08-09T06:15:07","slug":"redux-with-rest-api","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/08\/09\/redux-with-rest-api\/","title":{"rendered":"Redux\u3092REST API\u3068\u4f7f\u3046\u6642\u306e\u547d\u540d\u306e\u30b3\u30c4"},"content":{"rendered":"

\u6982\u8981<\/h2>\n

\u4eca\u56de\u306f\u3001REST API\u306b\u5bfe\u3057\u3066Redux\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u547d\u540d\u306e\u30b3\u30c4\u3092\u66f8\u3044\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3046\u3002<\/p>\n

\u30ea\u30bd\u30fc\u30b9\u306b\u3042\u308f\u305b\u3066constants\u3092\u3064\u304f\u308b<\/h2>\n

\u524d\u6e96\u5099\u3068\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u72b6\u614b\u3092\u8868\u3059constants\u3092\u3064\u304f\u3063\u3066\u304a\u304f\u3002<\/p>\n

\u57fa\u672c\u7684\u306bREST API\u3092\u6271\u3046\u6642\u306f\u3001\u30ed\u30b8\u30c3\u30af\u5074\u306fAPI\u30ea\u30bd\u30fc\u30b9\u306b\u5408\u308f\u305b\u305f\u547d\u540d\u306b\u3057\u3066\u304a\u304f\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u4e16\u754c\u3068\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u306a\u304f\u4f5c\u696d\u3067\u304d\u3066\u3001\u6df7\u4e71\u3092\u907f\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\/users<\/code>\u3068\u3044\u3046\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u3042\u308c\u3070\u3001users<\/code>\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u5168\u4f53\u3092\u8a2d\u8a08\u3057\u3066\u3086\u304f\u3002<\/p>\n

Redux\u3067\u975e\u540c\u671f\u306a\u51e6\u7406\u3092\u6271\u3046\u6642\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u4e2d<\/code> \u30ea\u30af\u30a8\u30b9\u30c8\u6210\u529f<\/code> \u30ea\u30af\u30a8\u30b9\u30c8\u5931\u6557<\/code>\u306e\u3088\u3046\u306a\u72b6\u614b\u3092\u6301\u3063\u3066\u304a\u304f\u3068\u601d\u3046\u304c\u3001REST API\u306e\u5834\u5408\u3001\u3053\u308c\u306bGET<\/code> POST<\/code> PUT<\/code> DELETE<\/code>\u306a\u3069\u304c\u306e\u3063\u3066\u304f\u308b\u306e\u3067\u3001\u547d\u540d\u3067\u6df7\u4e71\u3057\u306a\u3044\u3088\u3046\u306b\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30d8\u30eb\u30d1\u30fc\u3092\u4f5c\u3063\u3066\u304a\u304f\u3002<\/p>\n

const createAsyncConstants = (constant: string): TAsyncConstants => (\n  {\n    REQUEST: constant,\n    SUCCESS: `${constant}_SUCCESS`,\n    FAILURE: `${constant}_FAILURE`,\n  }\n);\n\nexport const createRESTConstants = (constant: string): TRESTConstants => (\n  {\n    GET: createAsyncConstants(`${constant}_GET`),\n    POST: createAsyncConstants(`${constant}_POST`),\n    PUT: createAsyncConstants(`${constant}_PUT`),\n    DELETE: createAsyncConstants(`${constant}_DELETE`),\n  }\n);\n\nexport const USERS = createRESTConstants('USERS'); \/\/ \u4f7f\u7528\u4f8b<\/code><\/pre>\n

\u3053\u308c\u304c\u3042\u308b\u3068\u3001export const USERS = createRESTConstants('USERS');<\/code>\u306e\u3088\u3046\u306b\u66f8\u304f\u3060\u3051\u3067\u3001USERS.GET.REQUEST<\/code> USERS.GET.SUCCESS<\/code> USERS.GET.FAILURE<\/code>\u306e\u3088\u3046\u306b\u305d\u308c\u305e\u308c\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u5fdc\u3057\u305f\u975e\u540c\u671f\u306e\u72b6\u614b\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u578b\u304c\u3064\u304f\u3068\u30b5\u30b8\u30a7\u30b9\u30c1\u30e7\u30f3\u304c\u3067\u308b\u306e\u3067\u66f8\u304d\u9593\u9055\u3048\u308b\u3053\u3068\u3082\u306a\u3044\u3002<\/p>\n

Redux\u306estate\u8a2d\u8a08\u3092\u3059\u308b<\/h2>\n

\u30e6\u30fc\u30b6\u30fc\u4e00\u89a7\u3092\u3064\u304f\u308bstate<\/code>\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n

const defaultUsers: TDefaultUsers = {\n  items: [],\n  query: {\n    name: '',\n    email: '',\n    phoneNumber: '',\n    type: '',\n    emailVerifiedFlg: true,\n    page: 1,\n  },\n  totalPage: 1,\n  isLoading: false,\n  errorMessage: '',\n};<\/code><\/pre>\n

\u6ce8\u610f\u70b9\u3068\u3057\u3066\u306f\u3001\u3053\u3053\u3067\u306eusers<\/code>\u3068\u3044\u3046\u547d\u540d\u306f\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8(\/users<\/code>)\u306b\u3042\u308f\u305b\u305f\u3082\u306e\u3067\u306f\u306a\u3044<\/strong>\u3068\u3044\u3046\u3053\u3068\u3060\u3002\u3053\u3053\u306f\u30d3\u30e5\u30fc\u3067\u6271\u3044\u3084\u3059\u3044\u3088\u3046\u306a\u30e2\u30c7\u30eb\u3092\u8a2d\u8a08\u3059\u308b\u306e\u304c\u6b63\u89e3\u304b\u3068\u601d\u3046\u3002<\/p>\n

\u4f8b\u3048\u3070\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\/users<\/code>\u306ePOST<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u8003\u3048\u305f\u3068\u304d\u306b\u3001\u5358\u4e00\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u30d5\u30a9\u30fc\u30e0\u753b\u9762\u304c\u3042\u308b\u3068\u60f3\u5b9a\u3059\u308b\u3002<\/p>\n

\u3053\u306e\u5834\u5408\u3001\u30d3\u30e5\u30fc\u306b\u306f\u5358\u4e00\u306e\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306e\u307f\u304c\u8868\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u6295\u5f71\u3059\u308b\u30e2\u30c7\u30eb\u306f\u3001users<\/code>\u3067\u306f\u306a\u304f\u3001user<\/code>\u3067\u3042\u308a\u3001\u30d5\u30a9\u30fc\u30e0\u306e\u30c7\u30fc\u30bf\u306f\u305d\u308c\u3092\u69cb\u6210\u3059\u308b\u30af\u30a8\u30ea\u306b\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\u3002state<\/code>\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u305d\u3046\u3060\u3002<\/p>\n

const defaultUser: TDefaultUser = {\n  query: {\n    name: '',\n    email: '',\n    phoneNumber: '',\n    type: '',\n    emailVerifiedFlg: true,\n  },\n  isLoading: false,\n  errorMessage: '',\n};<\/code><\/pre>\n

\u30d3\u30e5\u30fc\u306b\u5bfe\u3057\u3066\u30e2\u30c7\u30eb\u8a2d\u8a08\u3092\u3059\u308b\u3068\u3001\u540c\u3058\u3088\u3046\u306a\u30d3\u30e5\u30fc\u304c\u73fe\u308c\u305f\u6642\u306b\u4f7f\u3044\u307e\u308f\u3057\u304c\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\u3001\u3053\u306e\u5834\u5408\u3060\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u7de8\u96c6\u753b\u9762(\/users\/:id<\/code> PUT<\/code>)\u304c\u4f3c\u305f\u3088\u3046\u306a\u30d3\u30e5\u30fc\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u30d3\u30e5\u30fc\u3068API\u30ea\u30bd\u30fc\u30b9\u304c\u4e00\u81f4\u3059\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u305f\u3081\u3001state<\/code>\u306f\u30d3\u30e5\u30fc\u306b\u5bfe\u3057\u3066\u8a2d\u8a08\u3057\u305f\u65b9\u304c\u3044\u3044\u5834\u5408\u304c\u591a\u3044\u3002<\/p>\n

actionCreator, reducer\u3092\u3064\u304f\u308b<\/h2>\n

ducks\u30d1\u30bf\u30fc\u30f3<\/a>\u3067actionCreator<\/code>\u3084reducer<\/code>\u3092\u4e00\u6c17\u306b\u4f5c\u308b(\u53b3\u5bc6\u306b\u306f\u3082\u3068\u3082\u3068\u306educks\u30d1\u30bf\u30fc\u30f3\u304b\u3089\u306f\u82e5\u5e72\u5909\u3048\u3066\u3044\u308b\u90e8\u5206\u304c\u3042\u308b)\u3002immutable\u306a\u66f4\u65b0\u306b\u3064\u3044\u3066\u306f\u4eca\u56de\u306f\u7701\u7565\u3057\u3066\u3044\u308b\u3002<\/p>\n

\/\/ ducks\u30d1\u30bf\u30fc\u30f3\u3092\u3084\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b`redux-actions`\u3092\u3044\u308c\u3066\u3044\u308b\nimport { createActions, handleActions } from 'redux-actions';\nimport {USERS} from '.\/path\/to\/constants\/';\n\nexport const usersActionCreators: TUsersActionCreators = createActions({\n  [USERS.GET.REQUEST]: null,\n  [USERS.GET.SUCCESS]: (items, totalPage) => {\n    return {items, totalPage};\n  },\n  [USERS.GET.FAILURE]: (errorMessage) => {\n    return {errorMessage};\n  },\n});\n\nexport const usersReducer = handleActions({\n  [USERS.GET.REQUEST]: (state) => {\n    return {\n      ...state,\n      isLoading: true,\n      errorMessage: '',\n    };\n  },\n  [USERS.GET.SUCCESS]: (state, {payload: {items, totalPage}}) => {\n    \/\/ API\u30ec\u30b9\u30dd\u30f3\u30b9\u304b\u3089`items`, `totalPage`\u3092\u3082\u3089\u3046\n    return {\n      ...state,\n      items,\n      totalPage,\n      isLoading: false,\n      errorMessage: '',\n    };\n  },\n  [USERS.GET.FAILURE]: (state, { payload: { errorMessage } }) => {\n    return {\n      ...state,\n      isLoading: false,\n      errorMessage,\n    };\n  },\n}, defaultUsers);<\/code><\/pre>\n

\u4e0a\u8a18\u306eusersActionCreators<\/code>\u306f\u3001redux-actions<\/code>\u306b\u3088\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u3002<\/p>\n

export type TUsersActionCreators = {\n  usersGet: (query: TUsersGetQuery) => void;\n  usersGetSuccess: (items: Array<TUser>, totalPage: number) => void;\n  usersGetFailure: (errorMessage: string) => void;\n}<\/code><\/pre>\n

\u30e1\u30bd\u30c3\u30c9\u306f\u3053\u3061\u3089\u3067\u4f5c\u6210\u3057\u305fconstants<\/code>\u304ccamelCase<\/code>\u306b\u306a\u3063\u305f\u3082\u306e\u304c\u4f5c\u3089\u308c\u308b\u305f\u3081\u3001\u547d\u540d\u3068\u3057\u3066\u306fAPI\u30ea\u30bd\u30fc\u30b9\u306b\u3042\u308f\u305b\u305f\u3082\u306e\u306b\u306a\u308b\u306e\u304c\u308f\u304b\u308b\u3002\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u72b6\u614b\u3092\u8868\u3059\u3082\u306e\u306fAPI\u30ea\u30bd\u30fc\u30b9\u306b\u5408\u308f\u305b\u305f\u547d\u540d\u3092\u3057\u3066\u3001Redux state\u306f\u63cf\u753b\u3057\u305f\u3044DOM\u306b\u3042\u308f\u305b\u3066\u547d\u540d\u3001\u30e2\u30c7\u30eb\u8a2d\u8a08\u3092\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n

API\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30ed\u30b8\u30c3\u30af<\/h2>\n

\u975e\u540c\u671f\u306a\u51e6\u7406\u3092\u3069\u3046\u3059\u308b\u304b\u3068\u3044\u3046\u306e\u306fredux-saga<\/code>\u3084redux-thunk<\/code>\u3001redux-observable<\/code>\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u3084\u308a\u65b9\u304c\u3042\u308b\u3068\u601d\u3046\u304c\u3001\u500b\u4eba\u7684\u306b\u306f\u8cac\u52d9\u304c\u5206\u96e2\u3067\u304d\u3066\u30c1\u30fc\u30e0\u304c\u4f7f\u3044\u3084\u3059\u3051\u308c\u3070\u3069\u308c\u3092\u4f7f\u3063\u3066\u3082(\u4f7f\u308f\u306a\u304f\u3066\u3082)\u3044\u3044\u3068\u8003\u3048\u308b\u3002\u305f\u3060\u3057\u3001\u547d\u540d\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3069\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u901a\u4fe1\u3059\u308b\u90e8\u5206\u306a\u306e\u3067\u3001API\u30ea\u30bd\u30fc\u30b9\u306b\u5408\u308f\u305b\u305f\u547d\u540d\u3092\u3059\u308b\u3002<\/p>\n

\u5b9f\u969b\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n

export const usersResource = {\n  get: (query: TUsersGetQuery) => {\n    \/\/ JS\u5074\u3067\u306f`camelCase`\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001`snake_case`\u306b\u5909\u63db\u3057\u3066\u3044\u308b\n    const q = toSnakeCase(query);\n    return axios.get(`${HOST}\/users`, {params: q})\n      .then((response) => {\n        \/\/ \u5f0a\u793e\u3067\u306f\u4ee5\u4e0b\u306e\u6307\u91dd\u3067API\u8a2d\u8a08\u3057\u3066\u3044\u308b\u305f\u3081\u30a8\u30e9\u30fc\u6642\u306e\u51e6\u7406\u3092\u5207\u308a\u5206\u3051\u308b\n        \/\/ http:\/\/blog.mmmcorp.co.jp\/blog\/2015\/07\/01\/web_api_guideline\/\n        if (response.data.status !== 200) {\n          return {\n            status: response.data.status,\n            message: response.data.message,\n          };\n        }\n\n        return {\n          status: response.data.status,\n          message: response.data.message,\n          items: response.data.users.map((user) => {\n            \/\/ API\u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u306f`snake_case`\u304c\u8fd4\u3063\u3066\u304f\u308b\u306e\u3067`camelCase`\u306b\u5909\u63db\u3057\u3066\u3044\u308b\n            return toCamelCase(user);\n          }),\n          totalPage: response.data.total_page,\n        };\n      })\n      .catch(() => {\n        return {\n          status: 500,\n          message: '\u30b5\u30fc\u30d0\u30fc\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u3057\u3070\u3089\u304f\u6642\u9593\u304c\u7d4c\u3063\u3066\u304b\u3089\u518d\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002',\n        };\n      });\n  },\n  \/\/ post: () => {}\n  \/\/ delete: () => {}\n  \/\/ put: () => {}\n};<\/code><\/pre>\n

\/users<\/code>\u30ea\u30bd\u30fc\u30b9\u3068\u306e\u3084\u308a\u3068\u308a\u306f\u3001\u57fa\u672c\u7684\u306b\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3082usersResource<\/code>\u3092\u901a\u3057\u3066\u884c\u3046\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u3060\u3002\u3053\u308c\u304c\u5fc5\u8981\u306a\u7b87\u6240\u3067\u305d\u308c\u305e\u308c\u4f7f\u308f\u308c\u308b\u3002<\/p>\n

\u3053\u308c\u3089\u306e\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u3042\u3068\u306fDOM\u306b\u3064\u306a\u304e\u3053\u3080\u3060\u3051\u3067\u3042\u308b\u3002<\/p>\n

\u307e\u3068\u3081<\/h2>\n

\u4eca\u56de\u306e\u547d\u540d\u6307\u91dd\u3092\u307e\u3068\u3081\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n

    \n
  • \u30ea\u30bd\u30fc\u30b9\u306b\u3042\u308f\u305b\u3066\u547d\u540d\n
      \n
    • constants<\/li>\n
    • actionCreator\u306e\u30e1\u30bd\u30c3\u30c9<\/li>\n
    • resource\u30b5\u30fc\u30d3\u30b9<\/li>\n<\/ul>\n<\/li>\n
    • DOM\u3067\u4f7f\u3044\u3084\u3059\u3044\u3088\u3046\u306b\u547d\u540d\n
        \n
      • Redux state<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n

        \u5b9f\u969b\u306f\u3001Redux\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u5074\u306e\u30ea\u30bd\u30fc\u30b9\u8a2d\u8a08\u3068DOM\u3078\u306e\u30e2\u30c7\u30eb\u8a2d\u8a08\u306e\u6a4b\u6e21\u3057\u7684\u306a\u5f79\u5272\u3092\u6301\u3064\u611f\u3058\u3067\u3042\u308b\u3002\u3053\u308c\u3092\u5fdc\u7528\u3057\u3066\u3044\u304f\u3068\u591a\u5c11\u8907\u96d1\u306b\u306a\u3063\u3066\u3082\u547d\u540d\u306b\u8ff7\u308f\u306a\u304f\u3066\u3059\u3080\u3002\u540d\u524d\u304c\u6c7a\u307e\u308b\u3068\u30e2\u30c7\u30eb\u8a2d\u8a08\u3082\u898b\u3048\u3066\u304f\u308b\u306e\u3067\u3001\u958b\u767a\u306e\u30b9\u30d4\u30fc\u30c9\u3082\u4e0a\u304c\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n

        \u4ee5\u4e0a\u3001REST API\u306b\u5bfe\u3057\u3066Redux\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u547d\u540d\u306e\u30b3\u30c4\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

        \u6982\u8981 \u4eca\u56de\u306f\u3001REST API\u306b\u5bfe\u3057\u3066Redux\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u547d\u540d\u306e\u30b3\u30c4\u3092\u66f8\u3044\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3046\u3002 \u30ea\u30bd\u30fc\u30b9\u306b\u3042\u308f\u305b\u3066constants\u3092\u3064\u304f\u308b \u524d\u6e96\u5099\u3068\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u72b6\u614b\u3092\u8868\u3059constants\u3092\u3064\u304f\u3063\u3066\u304a\u304f\u3002 \u57fa\u672c\u7684\u306bREST API\u3092\u6271\u3046\u6642\u306f\u3001\u30ed\u30b8\u30c3\u30af\u5074\u306fAPI\u30ea\u30bd\u30fc\u30b9\u306b\u5408\u308f\u305b\u305f\u547d\u540d\u306b\u3057\u3066\u304a\u304f\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u4e16\u754c\u3068\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u306a\u304f\u4f5c\u696d\u3067\u304d\u3066\u3001\u6df7\u4e71\u3092\u907f\u3051\u308b […]<\/p>\n","protected":false},"author":1,"featured_media":826,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/392"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":0,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media\/826"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}