GET /api/members
All members: http://rayalevinson.com/projects/073/express_members_api/api/members
GET /api/members/1
Get member with id 1: http://rayalevinson.com/projects/073/express_members_api/api/members/1
POST /api/members
Create new member:
Set in Postman:
POST request
URL: http://rayalevinson.com/projects/073/express_members_api/api/members
Headers:
Content-Type application/json
Body -> Select: raw
Body:
{
"name": "Jake Smith",
"email": "jake@gmail.com"
}
See result in the Postman's Body part section at the bottom of the screen
PUT /api/members/1
Update member:
Set in Postman:
PUT request
URL: http://rayalevinson.com/projects/073/express_members_api/api/members/1
Headers:
Content-Type application/json
Body -> Select: raw
Body:
{
"name": "John Doe",
"email": "jdoe@yahoo.com"
}
See result in the Postman's Body part section at the bottom of the screen
DELETE /api/members/1
Delete member with id 1:
Set in Postman:
DELETE request
URL: http://rayalevinson.com/projects/073/express_members_api/api/members/1
See result in the Postman's Body part section at the bottom of the screen