- 
                Notifications
    You must be signed in to change notification settings 
- Fork 113
Open
Description
Describe the bug
/api/v2/scan-files
The above endpoint accepts an application/json payload. The response for a successful POST request is OK, rather than a valid JSON string ("OK").
The docs suggest a valid JSON "string" is returned, as expected for a json endpoint.
To Reproduce
curl -X POST \
-H "Content-Type: application/json" \
-d '{ "data": { "scanConfig": { "dbID": "LIBRARY_ID", "mode": "scanFolderWatcher", "arrayOrPath": ["/path/to/file"] } } }' \
"http://localhost:8265/api/v2/scan-files"
OKExpected behavior
A valid JSON string (quoted) should be returned, eg. "OK".
Metadata
Metadata
Assignees
Labels
No labels