Starting the Web API Server
Start the Web API server using the command line:Command Line Options
Host address to bind the server. Use
127.0.0.1 for local access only.Port number for the HTTP server
Path to JSON file or URL containing case source definitions
Sources Configuration
Create asources.json file defining available cases:
Base URL
All endpoints are relative to:http://HOST:PORT
Example: http://localhost:8080
Sources Endpoints
List Sources
Retrieve all available case sources.Array of source objects
Get Source Details
Retrieve information about a specific source. Endpoint:GET /sources/{sourceID}
Source identifier
Add Source
Dynamically add a new case source. Endpoint:POST /sources
Unique identifier for the source
Filesystem path to the case directory
Search Endpoint
Search Documents
Search for documents across all sources or a specific source. Endpoint:GET /search
Lucene query string (see Search API for syntax)
Optional source identifier to search within a specific case. If omitted, searches all sources.
Array of document references
Query Examples
Document Endpoints
Get Document Properties
Retrieve all properties and metadata for a document. Endpoint:GET /sources/{sourceID}/docs/{id}
Source identifier
Item ID
Source identifier
Item ID
Internal Lucene document ID
Map of property names to arrays of values
Array of bookmark names assigned to this item
Whether the item is selected/checked
Get Document Content
Download the raw binary content of a document. Endpoint:GET /sources/{sourceID}/docs/{id}/content
Source identifier
Item ID
- Content-Type:
application/octet-stream - Content-Disposition:
attachment; filename="original-filename.ext" - Binary content stream
Get Document Text
Retrieve the extracted text content of a document. Endpoint:GET /sources/{sourceID}/docs/{id}/text
Source identifier
Item ID
- Content-Type:
text/plain; charset=UTF-8 - Extracted text content
Bookmark Endpoints
List Bookmarks
Get all bookmark names across all sources. Endpoint:GET /bookmarks
List Bookmark Documents
Get all documents in a specific bookmark. Endpoint:GET /bookmarks/{bookmark}
Bookmark name
Create Bookmark
Create a new bookmark. Endpoint:POST /bookmarks/{bookmark}
Name for the new bookmark
Add Documents to Bookmark
Add documents to an existing bookmark. Endpoint:PUT /bookmarks/{bookmark}/add
Bookmark name
Array of document references to add
Remove Documents from Bookmark
Remove documents from a bookmark. Endpoint:PUT /bookmarks/{bookmark}/remove
Bookmark name
Array of document references to remove
Delete Bookmark
Delete a bookmark and all its associations. Endpoint:DELETE /bookmarks/{bookmark}
Bookmark name to delete
Rename Bookmark
Rename an existing bookmark. Endpoint:PUT /bookmarks/{old}/rename/{new}
Current bookmark name
New bookmark name
Error Responses
API endpoints return standard HTTP status codes:| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad request (invalid parameters) |
| 404 | Resource not found |
| 500 | Internal server error |
Rate Limiting
The API does not currently implement built-in rate limiting. For production deployments, implement rate limiting via reverse proxy (see Authentication).Swagger/OpenAPI
The API provides Swagger documentation: Endpoint:GET /application.wadl
Access interactive API docs at: http://localhost:8080/application.wadl
See Also
- Web API Authentication - Security and authentication
- Web API Examples - Complete integration examples
- Search API - Query syntax reference