This commit is contained in:
array-in-a-matrix 2024-07-03 01:34:39 -04:00
parent c6c3196242
commit 94ef640810

View file

@ -21,10 +21,14 @@ nimble run --verbose -d:normDebug
Each endpoint has comments describing what type of request it is and what parameters it takes.
Example requests using `cURL`:
```sh
curl --header "Authorization: <access_token>" -X <POST|GET|PUT|DELETE> <Endpoint URI> -d '<Request Body Contents>'
```
```sh
curl -s -X POST http://localhost:5000/api/v1/register -d 'username=Array' -d 'password=i8Vl8XZaVRiZFsZ'
```
```sh
curl -s -X POST -H "Authorization: <some long hash here>" -F "file=@image.png" http://localhost:5000/api/v1/upload
curl -s -X POST -H "Authorization: <access_token>" -F "file=@image.png" http://localhost:5000/api/v1/upload
```