{"image_url":"https://images-fe.ssl-images-amazon.com/images/I/51TxIQ16CRL._SL160_.jpg","version":"1.0","width":"100%","type":"rich","blog_url":"https://memory-lovers.blog/","published":"2018-10-06 01:43:16","provider_url":"https://hatena.blog","author_name":"wannabe-jellyfish","url":"https://memory-lovers.blog/entry/2018/10/06/014316","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2018%2F10%2F06%2F014316\" title=\"Django\u3067RESTful\u306aAPI\u3057\u3066\u307f\u305f - \u304f\u3089\u3052\u306b\u306a\u308a\u305f\u3044\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","categories":["Django","python","REST","DRF"],"description":"Django\u3067REST API\u3092\u7c21\u5358\u306b\u4f5c\u308c\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af(djangorestframework)\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002 \u30b5\u30af\u30c3\u3068\u4f5c\u308c\u308b\u306e\u3067\u3001\u3044\u3044\u611f\u3058\uff01 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u3068\u308a\u3042\u3048\u305a\u3001pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ pip install django djangorestframework \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u305f\u3089\u3001rest_framework\u3092\u8ffd\u52a0 INSTALLED_APPS = ( ... 'rest_framework', ) \u6982\u8981 \u69cb\u6210\u8981\u7d20 Model \u30fb\u30fb\u30fb Django\u306eModel Serializer \u30fb\u30fb\u30fbModel\u3092\u3069\u306e\u3088\u3046\u306b\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba(\u30fb\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba)\u3059\u308b\u304b\u3092\u6c7a\u3081\u308b\u305f\u3081\u306e\u3082\u306e View\u2026","author_url":"https://blog.hatena.ne.jp/wannabe-jellyfish/","provider_name":"Hatena Blog","blog_title":"\u304f\u3089\u3052\u306b\u306a\u308a\u305f\u3044\u3002","title":"Django\u3067RESTful\u306aAPI\u3057\u3066\u307f\u305f"}