This guide provides quick curl/API examples for using your deployed CounterAPI instance.
curl -X POST \
-H "Content-Type: application/json" \
-d '{"name": "my-cool-app", "description": "An example project"}' \
https://<your-api-url>/projectscurl -X POST \
-H "Content-Type: application/json" \
-d '{"name": "my-cool-app"}' \
https://<your-api-url>/projects/pingcurl https://<your-api-url>/projectscurl -X DELETE https://<your-api-url>/projects/my-cool-appUpdate name, description, and/or count:
curl -X PUT \
-H "Content-Type: application/json" \
-d '{"new_name": "my-renamed-app", "description": "Updated description", "count": 42}' \
"https://<your-api-url>/projects?name=my-cool-app"Check API and database connectivity:
curl https://<your-api-url>/healthcurl https://<your-api-url>/metaReplace <your-api-url> with your deployed Render URL (e.g., https://yourname-counterapi.onrender.com).