Prerequisites
Make sure you have Node.js installed.Get up and running
1
Install dependencies
Clone the repo and install packages.
2
Start the API
http://localhost:3000.3
List your plants
4
Add a plant
5
Delete a plant
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Start the Plant Care API and make your first requests.
Install dependencies
npm install
Start the API
npm start
http://localhost:3000.List your plants
curl http://localhost:3000/plants
Add a plant
curl -X POST http://localhost:3000/plants \
-H "Content-Type: application/json" \
-d '{"name": "Pothos", "species": "Epipremnum aureum", "wateringFrequencyDays": 5}'
Delete a plant
curl -X DELETE http://localhost:3000/plants/1
Was this page helpful?