Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marythedev authored Oct 11, 2023
1 parent f0684ae commit 56256d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ curl.exe http://localhost:8080
curl.exe -s localhost:8080 | jq
```

Fetch for users' fragments
```
curl.exe -i -u user1@email.com:password1 http://localhost:8080/v1/fragments
curl.exe -i -u user2@email.com:password2 http://localhost:8080/v1/fragments
```
Add new fragments for users (example)
```
curl.exe -i -X POST -u user1@email.com:password1 -H "Content-Type: text/plain" -d "This is a fragment" http://localhost:8080/v1/fragments
curl.exe -i -X POST -u user2@email.com:password2 -H "Content-Type: text/plain" -d "This is a fragment" http://localhost:8080/v1/fragments
```


EC2 Environment
-
Expand Down

0 comments on commit 56256d3

Please sign in to comment.