SalihTuncer / obd_diagnosis

OBD2 Diagnosis tool
MIT License
4 stars 0 forks source link

Partial configuration update #10

Open SalihTuncer opened 1 week ago

SalihTuncer commented 1 week ago

Description

Configurations should be updated partially too.

Current situation

Right now you need to POST a full configuration to update the current one.

Desired output

You should be able to update the configuration just by defining only the attributes you want to adjust. Whether you still need to pass a full object or single attributes, is up to the developer.

Example

{
  "request_type": "POST",
  "request_url": "/configuration",
  "request_body": {
    "connection": {
      "type": "async",
      "connected": true,
      "interval": 2.0
    }
  }
}

This should update the connection configuration while the rest of the configuration should stay untouched.