Skip to content

allangnutzmans/api-contacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Contacts

This project is a study on building a RESTful API for managing contacts using PHP with Object-Oriented Programming (OOP). It provides endpoints to create, retrieve, update, and delete contact information.

Features

  • Create Contact: Add a new contact with details such as name, email, and phone number.
  • Retrieve Contacts: Fetch a list of all contacts or a specific contact by ID.
  • Update Contact: Modify the details of an existing contact.
  • Delete Contact: Remove a contact from the database.

Technologies Used

  • Programming Language: PHP
  • Paradigm: Object-Oriented Programming (OOP) / PDO
  • Database: MySQL

After starting the application, you can use tools like Postman or curl to interact with the API. The available endpoints are:

GET /contacts: Retrieve all contacts. GET /contacts/{id}: Retrieve a contact by ID. POST /contacts: Create a new contact. PUT /contacts/{id}: Update an existing contact. DELETE /contacts/{id}: Delete a contact.

Contributing

Contributions are welcome! Please fork this repository and submit a pull request with your changes. Ensure that your code follows the project's coding standards and includes appropriate tests.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages