File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ CREATE TABLE users (
5454 name VARCHAR (50 ) NOT NULL ,
5555 email VARCHAR (50 ) NOT NULL
5656);
57-
57+ ```
5858## Setup Instructions
5959
6060### ** 1. AWS Infrastructure**
@@ -98,7 +98,7 @@ Content-Type: application/json
9898 "name": "Rabia",
9999 "email": "rabia@example.com"
100100}
101-
101+ ```
102102** Create User (POST /users)**
103103``` http
104104POST https://<invoke-url>/users
@@ -107,19 +107,28 @@ Body:
107107 "name": "Rabia",
108108 "email": "rabia@example.com"
109109}
110+ ```
110111** Get All Users (GET /users)**
111- ** GET https:// < invoke- url> / users**
112+ ``` http
113+ GET https://<invoke-url>/users
114+ ```
112115** Get User by ID (GET /users/1)**
113- ** GET https:// < invoke- url> / users/ 1 **
116+ ``` http
117+ GET https://<invoke-url>/users/1
118+ ```
114119** Update User (PUT /users/1)**
115- ** PUT https:// < invoke- url> / users/ 1 **
120+ ``` http
121+ PUT https://<invoke-url>/users/1
116122Body:
117123{
118124 "name": "Rabia Updated",
119125 "email": "rabia.new@example.com"
120126}
127+ ```
121128** Delete User (DELETE /users/1)**
129+ ``` http
122130DELETE https://<invoke-url>/users/1
131+ ```
123132---
124133### Testing & Logging
125134Use Postman or curl to test each endpoint.
You can’t perform that action at this time.
0 commit comments