This API documentation provides information on the endpoints and functionality of the Contacts Android application. This API allows users to manage contact information, including creating, reading, updating, and deleting contacts. Authentication is implemented using JWT for user login and signup.
Install the dependencies before running.
$npm install express nodemon mongooseStart the API.
$npm startTo access the API endpoints, users need to be authenticated using JSON Web Tokens (JWT). To authenticate, follow these steps:
{
"email": "Sting",
"password": "String"
}{
"email": "Sting",
"password": "String"
}All the available routes in the API.
Retrieve a list of all contacts.
GET /api/friends/
Retrieve a specific contact by its unique ID.
GET /api/friends/:id
Create a new contact.
POST /api/friends/add
{
"fname": "Sting",
"lname": "String",
"phone": ["String"]
}Update an existing contact.
PATCH /update/:id
Remove an existing contact.
DELETE /delete/:id