I'm during test REST API for external system to query documents in OpenKM, then I was found Swagger UI for testing as below link:
http://{my-ip}:8080/OpenKM/services/rest/api-docs?url=/OpenKM/services/rest/swagger.json
Then, I have found this search service: /search/find
There are many parameter but I focused on property search (I think it same one to meta-data search)
My Criteria is
okp:ereport.rpcode" = "ABC123"
So I input as "array( 'key' => "okp:ereport.rpcode", 'value' => "ABC123"))" in Swagger UI (as screenshot: Swagger_Sample_Screen.jpg)
But result are every documents in OpenKM system instead of only one document matched. (As screenshot: All_Documents_Returned.jpg)
I'm not sure what I wrong.
http://{my-ip}:8080/OpenKM/services/rest/api-docs?url=/OpenKM/services/rest/swagger.json
Then, I have found this search service: /search/find
There are many parameter but I focused on property search (I think it same one to meta-data search)
My Criteria is
okp:ereport.rpcode" = "ABC123"
So I input as "array( 'key' => "okp:ereport.rpcode", 'value' => "ABC123"))" in Swagger UI (as screenshot: Swagger_Sample_Screen.jpg)
But result are every documents in OpenKM system instead of only one document matched. (As screenshot: All_Documents_Returned.jpg)
I'm not sure what I wrong.
Attachments
2-All_Documents_Returned.jpg (189.85 KiB) Viewed 600 times
1-Swagger_Sample_Screen.jpg (231.76 KiB) Viewed 600 times