From a60123ca5c153dbc4673b4683b04c4e9bd227936 Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Tue, 19 Mar 2024 21:05:33 +0000 Subject: [PATCH] feat: update readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4001f9e..7b73973 100644 --- a/README.md +++ b/README.md @@ -100,3 +100,17 @@ or you can run it using the CLI ```bash python main.py ``` + +## How to `curl` + +You can create a user with + +```bash +curl 127.0.0.1:1378/users/ -H 'Content-Type: application/json' -d '{ "first_name": "Parham", "last_name": "Alvani", "average": 19.0 }' +``` + +and then list the created users with + +```bash +curl 127.0.0.1:1378/users/ +```