Yardman Help

Always up-to-date User's Manual and Documentaion for Developers

Yardman Logo

Vehicle Types API methods

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 vehicle types

# Get all vehicle types
$ http GET https://secure.yardman.io/api/vehicle_types \
> Authorization:"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyOCwiZXhwIjoxNTQzNTcxNzM0fQ.zsxJJg6khN3cSFnr_B9KYtbkBnIwVwTvFEvgBxi-rDw"

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: Thu, 29 Nov 2018 09:56:21 GMT
ETag: W/"3770575bb8bfc031a4ac0a75ffbdb26b"
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: e38e3c1a-7b49-4924-84cb-a2ef0a99d116
X-Runtime: 0.008843
X-XSS-Protection: 1; mode=block

[
    {
        "id": 19,
        "name": "Truck"
    },
    {
        "id": 20,
        "name": "Solo"
    },
    {
        "id": 21,
        "name": "Special"
    },
    {
        "id": 25,
        "name": "Personal"
    }
]

Yardman, our YMS Software