The exercise API provides information about exercises, body parts, and targets. Users can retrieve details about specific exercises, explore different body parts, and identify targeted muscle groups.
- Exercise Retrieval: Retrieve information about specific exercises.
- Body Parts: Explore information about different body parts.
- Targets: Identify muscle groups targeted by exercises.
- Exercise Name: Search for exercises based on partial or exact matches of exercise names.
Make sure you have Node.js and npm installed on your machine.
-
Clone this repository:
git clone https://github.com/cybermaxi7/exercise-api.git
-
Navigate to the project directory:
cd exercise-api -
Install dependencies:
npm install
Start the JSON Server with the following command:
npm startThis will launch the API server, and you can then make requests to the available endpoints.
-
Retrieve Exercise by ID:
GET /exercises/:id -
Search for Exercises:
GET /exercises?name=:searchTerm -
Retrieve Body Parts:
GET /bodyParts -
Retrieve Targets:
GET /targets
curl http://localhost:3000/exercises/1curl http://localhost:3000/exercises?name=pushIf you would like to contribute to this project, please follow the guidelines outlined in the CONTRIBUTING.md file.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or feedback, please contact Cybermaxi at maximusagbe@gmail.com
Feel free to use and modify this template as needed for your project.