ADSP-EcoTrekker-Project / EcoTrekker

3 stars 1 forks source link

feat(service): Add vehicle consumption service which receives POST request and returns its co2 emissions or kwh consumption per m #39

Closed lierseleow closed 8 months ago

lierseleow commented 9 months ago

The merge request includes:

The REST Service has only boilerplate for Exception Handling and CORS configuration, no specific implementations / config.

The REST Service provides /status Endpoints to monitor the current status of the service. The REST Service provides /v1 Endpoints to access its resources.

To access vehicles use /v1/consumption with a POST request and the following data:

{
    "vehicle_name":"car"
}

An example curl command is in README file of the service. For curl you will need to escape any double quotes with a backslash (\").

The /status/alive and /status/ready currently return OK on the same conditions.

TODOs: