teslatte/tesla_api_coverage/README.md

1.6 KiB

API Coverage

A tool designed to compare the API calls between teslatte and the publicly documented Tesla APIs.

Note: This tool is bespoke to the build of teslatte and is not intended for publishing on crates.io.

This project does (or will do) the following:

API.md output

  • Update API.md in the root.
  • Look for <!-- tesla_api_coverage start table --> and <!-- tesla_api_coverage end table --> and generate the table in between.
  • Use timdorr's API as the source of truth for the list of endpoints because it is the oldest and longest!

Brainstorm

Combined format idea:

{
  "honk_horn": {
    
    // If owner-api vs fleet-api methods are different, they should have different entries,
    // otherwise call it "rest":
    "rest": {
      "method": "POST",
      "endpoint": "/vehicles/{vehicle_id}/command/honk_horn"
    },
    "vehicle-command": {
      "endpoint": "honk"
    }
    
    "timdorr-endpoints-file": true,
    "teslatte": true,
    "owners-api": true,
    "fleet-api": true,
  }
}