API Section. Tidy up titles

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2024-09-25 18:36:56 +00:00
committed by Adam Warner
parent 61d413f40a
commit 323f51b773
3 changed files with 1 additions and 5 deletions
-2
View File
@@ -1,5 +1,3 @@
# API Reference: Authentication
Authentication is required for most API endpoints. The Pi-hole API uses a session-based authentication system. This means that you will not be able to use a static token to authenticate your requests. Instead, you will be given a session ID (SID) that you will have to use. If you didn't set a password for your Pi-hole, you don't have to authenticate your requests.
To get a session ID, you will have to send a `POST` request to the `/api/auth` endpoint with a payload containing your password. Note that is also possible to use an application password instead of your regular password, e.g., if you don't want to put your password in your scripts or if you have 2FA enabled for your regular password. One application password can be generated in the web interface on the settings page.
-2
View File
@@ -1,5 +1,3 @@
# API Reference: Overview
The Pi-hole API is organized around [REST](http://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts and returns reliable UTF-8 [JavaScript Object Notation (JSON)-encoded](http://www.json.org/) data for all API responses, and uses standard HTTP response codes and verbs.
Most (but not all) endpoints require authentication. API endpoints requiring authentication will fail with code `401 Unauthorized` if no key is supplied. See [API Reference: Authentication](auth.md) for details.
+1 -1
View File
@@ -129,7 +129,7 @@ nav:
- 'Group Management': database/domain-database/groups.md
- 'Database Recovery': database/domain-database/recovery.md
- 'Pi-hole API':
- 'Overview': api/index.md
- 'Pi-hole API': api/index.md
- 'Authentication': api/auth.md
- 'TLS/SSL': api/tls.md
- 'FTLDNS':