@@ -16,11 +16,11 @@ Cassandra for metadata) with multi-user support.
1616
1717The request contains the following fields:
1818- ` operation ` : The operation to perform (see operations below)
19- - ` document_id ` : Document identifier (for document operations)
20- - ` document_metadata ` : Document metadata object (for add/update operations)
19+ - ` document-id ` : Document identifier (for document operations)
20+ - ` document-metadata ` : Document metadata object (for add/update operations)
2121- ` content ` : Document content as base64-encoded bytes (for add operations)
22- - ` processing_id ` : Processing job identifier (for processing operations)
23- - ` processing_metadata ` : Processing metadata object (for add-processing)
22+ - ` processing-id ` : Processing job identifier (for processing operations)
23+ - ` processing-metadata ` : Processing metadata object (for add-processing)
2424- ` user ` : User identifier (required for most operations)
2525- ` collection ` : Collection filter (optional for list operations)
2626- ` criteria ` : Query criteria array (for filtering operations)
@@ -29,10 +29,10 @@ The request contains the following fields:
2929
3030The response contains the following fields:
3131- ` error ` : Error information if operation fails
32- - ` document_metadata ` : Single document metadata (for get operations)
32+ - ` document-metadata ` : Single document metadata (for get operations)
3333- ` content ` : Document content as base64-encoded bytes (for get-content)
34- - ` document_metadatas ` : Array of document metadata (for list operations)
35- - ` processing_metadatas ` : Array of processing metadata (for list-processing)
34+ - ` document-metadatas ` : Array of document metadata (for list operations)
35+ - ` processing-metadatas ` : Array of processing metadata (for list-processing)
3636
3737## Document Operations
3838
@@ -42,7 +42,7 @@ Request:
4242``` json
4343{
4444 "operation" : " add-document" ,
45- "document_metadata " : {
45+ "document-metadata " : {
4646 "id" : " doc-123" ,
4747 "time" : 1640995200000 ,
4848 "kind" : " application/pdf" ,
@@ -73,15 +73,15 @@ Request:
7373``` json
7474{
7575 "operation" : " get-document-metadata" ,
76- "document_id " : " doc-123" ,
76+ "document-id " : " doc-123" ,
7777 "user" : " alice"
7878}
7979```
8080
8181Response:
8282``` json
8383{
84- "document_metadata " : {
84+ "document-metadata " : {
8585 "id" : " doc-123" ,
8686 "time" : 1640995200000 ,
8787 "kind" : " application/pdf" ,
@@ -106,7 +106,7 @@ Request:
106106``` json
107107{
108108 "operation" : " get-document-content" ,
109- "document_id " : " doc-123" ,
109+ "document-id " : " doc-123" ,
110110 "user" : " alice"
111111}
112112```
@@ -132,7 +132,7 @@ Request:
132132Response:
133133``` json
134134{
135- "document_metadatas " : [
135+ "document-metadatas " : [
136136 {
137137 "id" : " doc-123" ,
138138 "time" : 1640995200000 ,
@@ -161,7 +161,7 @@ Request:
161161``` json
162162{
163163 "operation" : " update-document" ,
164- "document_metadata " : {
164+ "document-metadata " : {
165165 "id" : " doc-123" ,
166166 "title" : " Updated Research Paper" ,
167167 "comments" : " Updated findings and conclusions" ,
@@ -182,7 +182,7 @@ Request:
182182``` json
183183{
184184 "operation" : " remove-document" ,
185- "document_id " : " doc-123" ,
185+ "document-id " : " doc-123" ,
186186 "user" : " alice"
187187}
188188```
@@ -200,9 +200,9 @@ Request:
200200``` json
201201{
202202 "operation" : " add-processing" ,
203- "processing_metadata " : {
203+ "processing-metadata " : {
204204 "id" : " proc-456" ,
205- "document_id " : " doc-123" ,
205+ "document-id " : " doc-123" ,
206206 "time" : 1640995400000 ,
207207 "flow" : " pdf-extraction" ,
208208 "user" : " alice" ,
@@ -231,10 +231,10 @@ Request:
231231Response:
232232``` json
233233{
234- "processing_metadatas " : [
234+ "processing-metadatas " : [
235235 {
236236 "id" : " proc-456" ,
237- "document_id " : " doc-123" ,
237+ "document-id " : " doc-123" ,
238238 "time" : 1640995400000 ,
239239 "flow" : " pdf-extraction" ,
240240 "user" : " alice" ,
@@ -251,7 +251,7 @@ Request:
251251``` json
252252{
253253 "operation" : " remove-processing" ,
254- "processing_id " : " proc-456" ,
254+ "processing-id " : " proc-456" ,
255255 "user" : " alice"
256256}
257257```
@@ -287,7 +287,7 @@ Response:
287287{
288288 "id" : " unique-request-id" ,
289289 "response" : {
290- "document_metadatas " : [... ]
290+ "document-metadatas " : [... ]
291291 },
292292 "complete" : true
293293}
0 commit comments