Files
terminus/spec/app/contracts
Brooke Kuhlmann b78cedf56c Added device API key
This is a partial revert of d470a36 (Removed device friendly ID and API implementation) and is also why all of these changes are in a single commit since they are related and represent the revert of the original commit (for the most part). These changes allow us to restore use of the device API key because the Firmware fails to process Setup API requests when the `status` key is missing from the JSON payload body despite using a proper HTTP status code in the API response. By using the API key, we solve the following:

* Can use both the HTTP ID and ACCESS_TOKEN headers to identify, provision, and authenticate a device (more will be supported soon).
* Can transition devices between our Core server and this server more easily.
* Can support TRMNL Viewer and TRMNL Lib projects.
* Can finally stop devices from constantly hitting the Setup API before each Display API request.

As for the database migration, a unique index is used for the API Key but only when the API key is not `nil`.

Issue: 347
Milestone: minor
2026-07-14 15:29:31 -06:00
..
2026-07-14 15:29:31 -06:00
2026-05-18 15:12:52 -06:00