go get github.com/Gonzih/keepass-httpd
Start the server
$ keepass-httpd --keepass-file /path/to/file.kdbx --http-port 8080
Currently you always have to initialize db via http call
$ curl --form "password=mysecret" "http://localhost:8080/reload"
> {"status":"success"}
Search endpoint uses logical AND for parameters to search
$ curl "http://localhost:8080/search?title=entrytitle&url=url.com&username=myusername"
> {"username":"myusername","title":"entrytitle","password":"securepassword","url":"url.com"}
Re-read DB file from the disk to memory
$ curl --form "password=mysecret" "http://localhost:8080/reload"
> {"status":"success"}
To see all command line arguments run
keepass-httpd --help