This API provides endpoints for managing a person's data. It allows you to create, retrieve, update, and delete person records.
- PHP
- MySQL
- Web server
https://github.com/Jacktone-wambui/hngx-stagetwo-purephp/blob/master/Frame%201.png
-
Clone the repository:
git clone https://github.com/Jacktone-wambui/hngx-stagetwo-purephp
-
Navigate to the project directory:
cd hngx-stagetwo-purephp ```
-
Create a new database and import the
hngxtwo.sql
file included in the project. -
Configure the database connection:
- Open the
config.php
file. - Update the
$servername
,$username
,$password
, and$dbname
variables with your database credentials.
- Open the
-
Start the API:
- Ensure that your web server is running and configured to point to the project's directory.
- Access the API through the appropriate URL (e.g.,
http://localhost/api
).
- If an error occurs in any API request, the response will include an appropriate error message and status code.
- This API does not include authentication or authorization mechanisms. It is recommended to implement them based on your specific requirements.
- Fork the repository.
- Create your feature branch:
git checkout -b my-new-feature
. - Commit your changes:
git commit -am 'Add some feature'
. - Push the branch to your fork:
git push origin my-new-feature
. - Submit a pull request.