Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmed-hamdy101/restful-api
https://github.com/ahmed-hamdy101/restful-api
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahmed-hamdy101/restful-api
- Owner: Ahmed-Hamdy101
- Created: 2023-09-25T17:40:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-25T19:07:39.000Z (about 1 year ago)
- Last Synced: 2023-10-05T15:29:57.371Z (about 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP CRUD APIThis is a simple PHP CRUD API that allows you to perform basic CRUD operations on a MySQL database.
## Prerequisites
* PHP 7.4 or later
* MySQL 5.7 or later
* WebServer : mamp , xammp## Installation
1. Clone the repository
```
git clone https://github.com/your-username/php-crud-api.git
```## Usage
The API is accessible at `http://localhost:8000/api`. You can use the following endpoints to perform CRUD operations:
* `GET /api/catagory` - Get all categories
* `POST /api/catagory` - Create a new category
* `GET /api/catagory/{id}` - Get a single category by ID
* `PUT /api/catagory/{id}` - Update a category by ID
* `DELETE /api/catagory/{id}` - Delete a category by ID## Contributing
Contributions are welcome! Please submit a pull request if you have any improvements or suggestions.
## License
This project is licensed under the MIT license.