From 56256d32d90d73acc1412bbf439c01f0b819625c Mon Sep 17 00:00:00 2001 From: Maria Dmytrenko <79389256+marythedev@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:22:03 -0400 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 86c11e4..abcc708 100644 --- a/README.md +++ b/README.md @@ -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 -