Skip to content

Commit 2e6c7b0

Browse files
Alexandre Oliveiraclaude
andcommitted
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>
1 parent d1a108f commit 2e6c7b0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs-turing/developer-guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Understanding the stack helps you navigate the codebase and decide where to plug
3030
```mermaid
3131
graph TD
3232
A[Your IDE] -->|mvn spring-boot:run| B[Turing ES Backend\nSpring Boot / Java 21]
33-
A -->|npm start| C[React Admin Console\nlocalhost:3000]
33+
A -->|npm run dev| C[React Admin Console\nlocalhost:5173]
3434
B --> D[Apache Solr\nlocalhost:8983]
3535
B --> E[Apache Artemis\nMessage Queue]
3636
C -->|REST API| B
@@ -198,14 +198,14 @@ Turing ES maintains high code quality standards. You can check the project healt
198198

199199
## REST API
200200

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.
202202

203203
### Authentication
204204

205-
All API requests require an `Authorization` header with a Bearer token:
205+
All API requests require a `Key` header containing the API token:
206206

207207
```
208-
Authorization: Bearer <YOUR_API_TOKEN>
208+
Key: <YOUR_API_TOKEN>
209209
```
210210

211211
**Generating an API Token:**
@@ -251,7 +251,7 @@ The core search endpoint. Returns results, facets, spotlights, and pagination.
251251

252252
```bash
253253
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>" \
255255
-H "Accept: application/json"
256256
```
257257

@@ -304,7 +304,7 @@ Returns the most recent search terms for a given user — useful for personalise
304304

305305
```bash
306306
curl -X POST "http://localhost:2700/api/sn/Sample/search/latest?q=cloud&rows=5&_setlocale=en_US" \
307-
-H "Authorization: Bearer <API_TOKEN>" \
307+
-H "Key: <API_TOKEN>" \
308308
-H "Content-Type: application/json" \
309309
-d '{ "userId": "user123" }'
310310
```

0 commit comments

Comments
 (0)