BASE_URL= 'https://87vm3n61gh.execute-api.us-east-2.amazonaws.com/dev'
GET BASE_URL/user/get/{USER_ID}
Demo curl example
curl --location --request GET 'https://87vm3n61gh.execute-api.us-east-2.amazonaws.com/dev/user/get/tJzCuoaUxAdRthKFwNaYLj'
POST BASE_URL/user/create
Request-body:
{
"name":"name",
"email":"[email protected]",
"address":"nowhere"
}
Demo curl example
curl --location --request POST 'https://87vm3n61gh.execute-api.us-east-2.amazonaws.com/dev/user/create/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"name",
"email":"[email protected]",
"address":"nowhere"
}'
PUT BASE_URL/user/update/{USER_ID}
Request-body:
{
"email":"[email protected]",
"address":"somewhere"
}
Demo curl example
curl --location --request PUT 'https://87vm3n61gh.execute-api.us-east-2.amazonaws.com/dev/user/update/tJzCuoaUxAdRthKFwNaYLj' \
--header 'Content-Type: application/json' \
--data-raw '{
"email":"[email protected]",
"address":"somewhere"
}'
DELETE BASE_URL/user/delete/{USER_ID}
Demo curl example
curl --location --request DELETE 'https://87vm3n61gh.execute-api.us-east-2.amazonaws.com/dev/user/delete/tJzCuoaUxAdRthKFwNaYLj'