Creating Resources ------------------ User can create a resource by sending a POST request (with JSON payload) to a defined endpoint. Following examples show required parameters and JSON bodies. An example of creating a resource - a new ``user`` is illustrated it the example below. Create Customer ............... .. http:post:: /customer/ Create a customer. Note that customer's location is required. **Sample request**: .. sourcecode:: http POST /customer/ HTTP/1.1 Host: api.fieldaware.net Authorization: Token d943a51d68c44ca38cab9abda20a4d18 Content-Type: application/json { "name": "BigData", "email": "bdata@mailinator.com", "phone": "003537876645", "website": "www.bdata.net", "discount": 8, "location": { "name": "Head", "streetName": "Guiness Avenue", "locality": "Dublin", "postcode": "Dublin8", "country": "Ireland" } } :json obj link: JSON object representing a link to the created item :>json string uuid: UUID reference number of the newly created customer :>json obj location: JSON objects representing customer's location