Now, we will use the HTTP command or its curl equivalents to compose and send HTTP requests to the recently coded RESTful Web Service that allows us to work with drone categories, drones, pilots, and competitions. We will use JSON for the requests that require additional data. Remember that you can perform the same tasks with your favorite GUI- based tool or with the browsable API.
Launch Django's development server to compose and send HTTP requests to our new unsecure Web service. We will definitely add security later. In case you don't remember how to start Django's development server, check the instructions in Chapter 3, Creating API Views, in the Launching Django's development server section.
First, we will compose and send an HTTP
POST request to create a new drone category:
http POST :8000/drone-categories/ name="Quadcopter"
The following is the equivalent curl command:
curl -iX POST -H "Content-Type: application/json...