Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/marythedev/fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
marythedev committed Oct 12, 2023
2 parents 9402ff4 + 56256d3 commit ce0a00e
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 ce0a00e

Please sign in to comment.