Create a single resource REST API using a domain model, constructed using AWS Cloud Services.
-
- POST/people POST Folder :

- POST/people POST Folder :
-
- GET/PEOPLE GET Folder :

- GET/PEOPLE GET Folder :
-
- GET/PEOPLE/ID GET ID FOLDER:

- GET/PEOPLE/ID GET ID FOLDER:
-
- PUT/People/ID PUT-ID FOLDER:
and 
- PUT/People/ID PUT-ID FOLDER:
-
- DELETE/PEOPLE/ID Delete FOLDER:

- DELETE/PEOPLE/ID Delete FOLDER:
- CURD operations are not updated in their respective folders
-
POST /people
- Input: JSON body with
id,name,city. - Output: Object representing the created record.
- Input: JSON body with
-
GET /people
- Output: Array of all records.
-
GET /people/{id}
- Output: Object representing the record with the given id.
-
PUT /people/{id}
- Input: JSON body with fields to update.
- Output: Object representing the updated record.
-
DELETE /people/{id}
- Output: Empty object.
