server/README.md
Array in a Matrix ae55e9f3fa
Update README.md
2024-07-11 22:14:28 -04:00

770 B

Glimpse API server

This is the Glimpse API server.

Run test server instance

Install needed libraries:

nimble install jester norm checksums

Compile and run:

nimble run --deepcopy:on

More verbose compilation:

nimble run --deepcopy:on --verbose -d:normDebug --spellSuggest

API Endpoints

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

curl -X <POST|GET|PUT|DELETE> <Endpoint URI> -H '<Request Body Contents>'
curl -X POST http://localhost:5000/api/v1/newUser -H 'Username=Array' -H 'Password=i8Vl8XZaVRiZFsZ'
curl -X POST -H "Authorization: <access_token>" -F "file=@image.png" http://localhost:5000/api/v1/newFile