„NUKI DEVELOPER | Nuki Bridge HTTP API“ ändern

Marko Oldenburg 2021-11-29 12:11:08 +01:00
parent 1ffa4226ad
commit da62de51fb

@ -154,3 +154,19 @@ Possible doorsensor states (used in Endpoints below).
## 5. Endpoints
### /auth
<table>
<tr>
<td>URL</td>
<td>http://192.168.1.50:8080/auth</td>
</tr>
<td>Usage</td>
<td>Enables the api (if not yet enabled) and returns the api token. If no api token has yet been set, a new (random) one is generated. When issuing this API-call the bridge turns on its LED for 30 seconds. The button of the bridge has to be pressed within this timeframe. Otherwise the bridge returns a negative success and no token.</td>
</tr>
<tr>
<td rawspan="3">Response</td>
<td colspan="2">JSON list containing the success of the authorization</td>
</tr>
<tr>
<td>token</td>
<td>The api token</td>
</table>