How to use Fuel Consumption with REST API

This guide will show you how to create Fuel Refill reports using REST API replacing the legacy XML file format.

Requisites

The Fuel Consumption resource will require the following information to be entered, read here how to obtain them:

Resource used

  • FuelConsumption > Post

Creating fuel consumption events

1. Log in to http://host_name/comGpsGate/api/v.1/test 

Note: replace host_name with your actual server IP address or host name.

2. Click on the resource name POST/applications/...../fuelconsumption > Try it out option.

mceclip1.png

3. Introduce the details of the Fuel Consumption event which are:

4. Click on Execute

mceclip3.png

5. If the command succeeded, you will see the response in the Response area with the data introduced:

mceclip2.png

Now your fuel consumption event will be displayed on the GUI

mceclip4.png