{"id":18620993,"url":"https://github.com/jamestang12/contact-manager-api","last_synced_at":"2026-04-10T04:44:54.769Z","repository":{"id":42876145,"uuid":"257090466","full_name":"jamestang12/Contact-Manager-API","owner":"jamestang12","description":"This is a Node/Express/MongoDB REST API for Contact Manager that uses JWT authentication, allow application and users to manager contacts from the database","archived":false,"fork":false,"pushed_at":"2023-01-06T03:48:16.000Z","size":409,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T04:40:12.288Z","etag":null,"topics":["database","express","json","jwt-authentication","mongodb","mongodb-database","mongoose","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamestang12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-19T19:59:47.000Z","updated_at":"2020-05-04T21:46:43.000Z","dependencies_parsed_at":"2023-02-05T06:16:29.455Z","dependency_job_id":null,"html_url":"https://github.com/jamestang12/Contact-Manager-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestang12%2FContact-Manager-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestang12%2FContact-Manager-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestang12%2FContact-Manager-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestang12%2FContact-Manager-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamestang12","download_url":"https://codeload.github.com/jamestang12/Contact-Manager-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239414401,"owners_count":19634437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","express","json","jwt-authentication","mongodb","mongodb-database","mongoose","nodejs"],"created_at":"2024-11-07T04:08:43.387Z","updated_at":"2025-11-03T12:30:31.493Z","avatar_url":"https://github.com/jamestang12.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contact-Manager-API\nThis is a Node/Express/MongoDB REST API for Contact Manager that uses JWT authentication, allow application and users to manager contacts from the database\n\n## Getting Started\n\n```\n  Open the config/default.json file and add your mongoURI and your jwtSecret\n```\n\n```bash\n  npm install\n  npm run server # Runs on http://localhost:5000\n```\n\n# API Usage \u0026 Endpoints\n\n## Register a User [POST /api/users]\n\n- Request: Add user and request JSON web token\n\n  - Headers\n\n        Content-type: application/json\n\n  - Body\n\n            {\n              \"name\": \"\",\n              \"email\": \"\",\n              \"password\": \"\"\n            }\n\n- Response: 200 (application/json)\n\n  - Body\n\n          {\n            \"token\": \"\"\n          }\n\n## Login with a User [POST /api/auth]\n\n- Request: Login with credentials to recieve a JSON web token\n\n  - Headers\n\n        Content-type: application/json\n\n  - Body\n\n            {\n              \"email\": \"\",\n              \"password\": \"\"\n            }\n\n- Response: 200 (application/json)\n\n  - Body\n\n          {\n            \"token\": \"\"\n          }\n\n## Get Contacts [GET /api/contacts]\n\n- Request: Get all contacts of a specific user\n\n  - Headers\n\n        x-auth-token: YOURJWT\n\n* Response: 200 (application/json)\n\n  - Body\n\n          {\n            \"contacts\": []\n          }\n\n## Add New Contact [POST /api/contacts]\n\n- Request: Add a new contact\n\n  - Headers\n\n        x-auth-token: YOURJWT\n        Content-type: application/json\n\n  - Body\n\n            {\n              \"name\": \"\",\n              \"email\": \"\",\n              \"phone\": \"\",\n              \"type\": \"\" [personal or professional]\n            }\n\n- Response: 200 (application/json)\n\n  - Body\n\n          {\n            \"contact\": {}\n          }\n\n## Update Contact [PUT /api/contacts/:id]\n\n- Request: Update existing contact\n\n  - Parameters\n\n    - id: 1 (number) - An unique identifier of the contact.\n\n  - Headers\n\n        x-auth-token: YOURJWT\n        Content-type: application/json\n\n  - Body\n\n            {\n              \"name\": \"\",\n              \"email\": \"\",\n              \"phone\": \"\",\n              \"type\": \"\" [personal or professional]\n            }\n\n- Response: 200 (application/json)\n\n  - Body\n\n          {\n            \"contact\": {}\n          }\n\n## Delete Contact [DELETE /api/contacts/:id]\n\n- Request: Delete existing contact\n\n  - Parameters\n\n    - id: 1 (number) - An unique identifier of the contact.\n\n  - Headers\n\n        x-auth-token: YOURJWT\n\n* Response: 200 (application/json)\n\n  - Body\n\n          {\n            \"msg\": \"Contact removed\"\n          }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamestang12%2Fcontact-manager-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamestang12%2Fcontact-manager-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamestang12%2Fcontact-manager-api/lists"}