As mentioned before each API call must be authorized by a valid authorization token. To get the valid authorization token you must authenticate user first.
Get list of yards
# Get all yards
$ http GET https://secure.yardman.io/api/yards \
> Authorization:"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjozOSwiZXhwIjoxNTE5Mjk3MDIyfQ.R5UoAglylK2i5ov4qDH9bJUqt3qJh7uLVA11dLGlozg"
If the authorization token is valid you should get something similar to the following result:
HTTP/1.1 200 OK
Cache-Control: max-age=0, private, must-revalidate
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Wed, 21 Mar 2018 18:39:08 GMT
ETag: W/"cbca137ee1f7578c3cd15159eeb9af7e"
Server: nginx/1.10.3 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Request-Id: fed4e472-adb2-46bb-a783-c91aa503481e
X-Runtime: 0.014019
X-XSS-Protection: 1; mode=block
[
{
"id": 27,
"location": {
"id": 19,
"name": "Emmerichfort"
},
"name": "Daniel Centers"
},
{
"id": 28,
"location": {
"id": 19,
"name": "Emmerichfort"
},
"name": "Eladio Streets"
},
{
"id": 25,
"location": {
"id": 19,
"name": "Emmerichfort"
},
"name": "Hane Court"
}
]