Welcome to the Fruit API! This RESTful web service is designed to manage a collection of fruits, allowing users to perform various operations easily.
- CRUD Operations: Create, Read, Update, and Delete fruit entries.
- Data Management: Store information about fruits, including their name, color, and nutritional value.
- Swagger Documentation: Easily explore and test API endpoints through integrated Swagger UI.
Retrieve a list of all fruits.
Retrieve a specific fruit by its ID.
Create a new fruit entry.
Example Payload: A JSON object containing the fruit's name, color, and nutritional value.
Update an existing fruit by its ID.
Example Payload: A JSON object with updated information for the fruit.
Delete a specific fruit by its ID.
- To retrieve all fruits, send a GET request to
/api/fruits
. - To add a new fruit, send a POST request with the fruit data to
/api/fruits
.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to submit a pull request or open an issue.
For questions, please contact Lukaku.