This is the API server.
Find a file
2024-06-28 11:29:54 -04:00
src moved proc and type defs to own files 2024-06-28 11:29:54 -04:00
.gitignore ignore databases 2024-06-20 15:35:30 -04:00
LICENSE Initial commit 2024-06-11 12:51:31 -04:00
README.md compile instruct + document endpoints 2024-06-20 16:17:09 -04:00
server.nimble add checksum lib for sha3 2024-06-28 11:07:06 -04:00

Glimpse API server

This is the Glimpse API server.

Run test server instance

Install needed libraries:

nimble install jester norm

Compile and run:

nimble run --verbose -d:normDebug

API Endpoints

/api/register

Arguments required: username password

curl -s -X POST http://localhost:5000/api/register -d 'username=Array' -d 'password=i8Vl8XZaVRiZFsZ'

/api/upload

Arguments required: file token

Example:

curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@image.png" -F "token=SkNaeltRR2RPS3FXTUlvVkdBZ154S3Bjam5iZllkWnlxeVN3cUtfTVQ=" http://localhost:5000/api/upload