Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zakircodearchitect/contact-mangement-app---expressjs

Contact Management App API is a RESTful service that enables secure management of contacts with full CRUD functionality. It adheres to REST conventions and provides endpoints for creating, reading, updating, and deleting contacts, ensuring proper authentication and role-based access controls for enhanced security.
https://github.com/zakircodearchitect/contact-mangement-app---expressjs

express-middleware expressjs nodejs nodejs-server

Last synced: 11 days ago
JSON representation

Contact Management App API is a RESTful service that enables secure management of contacts with full CRUD functionality. It adheres to REST conventions and provides endpoints for creating, reading, updating, and deleting contacts, ensuring proper authentication and role-based access controls for enhanced security.

Awesome Lists containing this project

README

        

# Contact Management App API

A RESTful API for managing contacts with full CRUD functionality, including authentication and authorization.

## Features

- **CRUD Operations**: Create, read, update, and delete contacts.
- **Authentication**: Secure user authentication.
- **Authorization**: Role-based access control.
- **REST API Conventions**: Follows standard HTTP methods and endpoints.

## API Endpoints

| HTTP Method | Endpoint | Description |
|-------------|-----------------------|-------------------------|
| `GET` | `/api/contacts` | Get all contacts |
| `GET` | `/api/contacts/:id` | Get a single contact |
| `POST` | `/api/contacts` | Create a new contact |
| `PUT` | `/api/contacts/:id` | Update a contact |
| `DELETE` | `/api/contacts/:id` | Delete a contact |

## Technologies Used

- **Node.js** with **Express** for the backend
- **MongoDB** or **PostgreSQL** for the database
- **JWT** for authentication

## Setup Instructions

1. Clone the repository:
```bash
git clone https://github.com/yourusername/contact-management-app.git
cd contact-management-app

## Usage

You can test the API endpoints using tools like **Postman**, **cURL**, or by integrating it into your frontend. Below are some example requests:

### Get All Contacts
```bash
GET /api/contacts

MIT License

Copyright (c) 2024 Zakir Matloob

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.