mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
example
This commit is contained in:
parent
c6c3196242
commit
94ef640810
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue