Hi,
I am trying to use the download tool to retrieve data regarding car details. The DVLA example is below.
Any help with configuring the download tool would be great.
Requests
To call the API, make a HTTP POST request to the following URL:
https://driver-vehicle-licensing.api.gov.uk/vehicle-enquiry/v1/vehicles
and include the following in the request body:
{ "registrationNumber": "TE57VRN" }
You must also include a mandatory x-api-key header with each request you send. This must contain the API key which you have been issued with.
For example, using cURL, a request can be made as follows:
curl -L -X POST 'https://driver-vehicle-licensing.api.gov.uk/vehicle-enquiry/v1/vehicles' \ -H 'x-api-key: REPLACE WITH YOUR API KEY' \ -H 'Content-Type: application/json' \ -d '{"registrationNumber": "TE57VRN"}'
OWASP security guidelines dictate that sensitive information should not be included in URLs. This reduces the risk of sensitive information being unnecessarily recorded in Web Server logs. The vehicle registration number is deemed sensitive information in accordance with the Information Commissioner’s Office (ICO), so is passed in the body as a POST request.
Solved! Go to Solution.
Thanks, i managed to get this to work in the end! I was missing the curly brackets which was causing an error.
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
6 |