Skip to content

Commit 65727a2

Browse files
committed
feat!: Add apiKey support to API requests
- Introduced `apiKey` field for secure authentication in configuration and API requests. - Updated clear and task APIs to accept enhanced request objects. - Added required tests and assertions for `apiKey` handling across all request types. - Refactored HTTP operations to include `apiKey` in request headers. - Introduced new classes for managing authentication details. Fixes #187 Signed-off-by: Eric Deandrea <[email protected]>
1 parent 0e7f72d commit 65727a2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/src/doc/docs/docling-serve/serve-api.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@ System.out.println(response.getDocument().getMarkdownContent());
8585

8686
### The `DoclingServeApi` interface
8787

88-
Defined in `ai.docling.serve.api.DoclingServeApi`, this interface exposes two primary operations:
89-
90-
- `health()` → returns a `HealthCheckResponse` with service status.
91-
- `convertSource(request)` → submits one or more sources plus options and an optional target,
92-
returning `ConvertDocumentResponse`.
88+
Defined in `ai.docling.serve.api.DoclingServeApi`, this interface exposes many operations:
9389

9490
Any HTTP or non-HTTP implementation can implement this interface. The reference implementation is
9591
provided by the `docling-serve-client` module.

docs/src/doc/docs/docling-serve/serve-client.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ DoclingServeApi noisy = DoclingServeClientBuilderFactory.newBuilder()
134134
.baseUrl("http://localhost:8000")
135135
.logRequests()
136136
.logResponses()
137+
.prettyPrint()
137138
.build();
138139
```
139140

0 commit comments

Comments
 (0)