This is the API server.
Find a file
2024-06-28 11:46:13 -04:00
.vscode vscodium extension recommendatiosn 2024-06-28 11:46:13 -04:00
src moved proc and type defs to own files 2024-06-28 11:32:20 -04:00
.gitignore ignore server executable in the root folder 2024-06-28 11:32:43 -04:00
LICENSE Initial commit 2024-06-11 12:51:31 -04:00
README.md api documentation will be done in comments not here 2024-06-28 11:46:02 -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

Each endpoint has comments describing what type of request it is and what parameters it takes. Example requests using cURL:

curl -s -X POST http://localhost:5000/api/register -d 'username=Array' -d 'password=i8Vl8XZaVRiZFsZ'
curl -s -X POST -H "Content-Type: multipart/form-data" -F "file=@image.png" -F "token=<some long hash here>" http://localhost:5000/api/upload