Document supervisor /auth GET method (#767)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Sergio Oller 2021-01-08 14:26:23 +01:00 committed by GitHub
parent c72638907f
commit 7f9f3dd4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -624,6 +624,12 @@ Set the output volume for a specific application
### Auth
<ApiEndpoint path="/auth" method="get">
You can do authentication against Home Assistant Core using Basic Authentication.
Use the `X-Supervisor-Token` header to provide the Supervisor authentication token.
See the corresponding POST method to provide JSON or urlencoded credentials.
</ApiEndpoint>
<ApiEndpoint path="/auth" method="post">
You can do authentication against Home Assistant Core.
You can POST the data as JSON, as urlencoded (with `application/x-www-form-urlencoded` header) or by using use basic authentication.