学習履歴 ■はじめに Django REST framework を使って、REST API の作成方法を学んでみる。 ■環境 Mac Python3.7 pipenv Django2.1 Pycharm ■Library API の構築 サンプルとして、Library API を作りつつ、Django REST Framework を学んで行こう。 ただ、Django REST framework だけでは Web API を構築することができないので、 まずは、Django のアプリケーションを作り、その後、 REST framework を追加する。 ■ Djangoプロジェクトの作成 pipenv を使って、仮想環境を構築して、そこに Django をインストールする。 $ mkdir django_rest_framework $ cd django_rest_framework