September 2017
Intermediate to advanced
244 pages
6h 44m
English
Before creating the RESTful API's endpoint specific to resources, let's first create directories in which we will place our code. Create a blog directory somewhere, your home directory, in case Linux is preferable. Then, create an api directory in the blog directory. We will place all our code in the api directory. If you are a command line fan or a seasoned Ubuntu user, simply run the following command to create these directories:
$ mkdir ~/blog //create blog directory$ cd ~/blog //chang directory to blog directory$ mkdir api //create api directory inside blog directory ~/blog$ cd api //change directory to api directory
So, api is the directory where we will place our code. As you know, we are going to write ...
Read now
Unlock full access