You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(turing): correct REST API authentication header
API calls use the custom 'Key' header, not 'Authorization: Bearer'.
Also fix Mermaid diagram (npm run dev / port 5173).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
A -->|npm start| C[React Admin Console\nlocalhost:3000]
33
+
A -->|npm run dev| C[React Admin Console\nlocalhost:5173]
34
34
B --> D[Apache Solr\nlocalhost:8983]
35
35
B --> E[Apache Artemis\nMessage Queue]
36
36
C -->|REST API| B
@@ -198,14 +198,14 @@ Turing ES maintains high code quality standards. You can check the project healt
198
198
199
199
## REST API
200
200
201
-
Turing ES exposes a rich REST API for integrating search and AI capabilities into any application. All endpoints use **JSON** and authenticate via **Bearer API tokens**.
201
+
Turing ES exposes a rich REST API for integrating search and AI capabilities into any application. All endpoints use **JSON** and authenticate via an **API token** passed as a custom request header.
202
202
203
203
### Authentication
204
204
205
-
All API requests require an `Authorization` header with a Bearer token:
205
+
All API requests require a `Key` header containing the API token:
206
206
207
207
```
208
-
Authorization: Bearer <YOUR_API_TOKEN>
208
+
Key: <YOUR_API_TOKEN>
209
209
```
210
210
211
211
**Generating an API Token:**
@@ -251,7 +251,7 @@ The core search endpoint. Returns results, facets, spotlights, and pagination.
251
251
252
252
```bash
253
253
curl -X GET "http://localhost:2700/api/sn/Sample/search?q=enterprise+search&p=1&_setlocale=en_US&rows=10" \
254
-
-H "Authorization: Bearer <API_TOKEN>" \
254
+
-H "Key: <API_TOKEN>" \
255
255
-H "Accept: application/json"
256
256
```
257
257
@@ -304,7 +304,7 @@ Returns the most recent search terms for a given user — useful for personalise
304
304
305
305
```bash
306
306
curl -X POST "http://localhost:2700/api/sn/Sample/search/latest?q=cloud&rows=5&_setlocale=en_US" \
0 commit comments