[GET] "/api/contacts" Get All Contacts
[GET] "/api/contacts/{id}" Get a single contact, pass id as argument in URL
[POST] "/api/contacts" Adds a new contact, post contact(name, contact, email) as json
Example
{
"name": "Aryan Maurya",
"contact": "9971984993, 9795644147",
"email": "aryanmaurya1@outlook.com"
}
[PUT] "/api/contacts/{id}" Updates an existing contact based on the id passed in URL as argument, pass complete updated contact even if updating a single field as json.
[DELETE] "/api/contacts/{id}" Deletes an existing contact based on the id passed in URL as argument
aryanmaurya1/contactAPI
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|