Skip to content

add-a-get-version-endpoint-to-backend-ap: Add GET /version endpoint#2

Open
happyforever006 wants to merge 2 commits intomasterfrom
feat/add-a-get-version-endpoint-to-backend-ap
Open

add-a-get-version-endpoint-to-backend-ap: Add GET /version endpoint#2
happyforever006 wants to merge 2 commits intomasterfrom
feat/add-a-get-version-endpoint-to-backend-ap

Conversation

@happyforever006
Copy link
Owner

Summary

  • Added GET /version endpoint to backend/app.py that returns {"version": "1.0.0", "name": "coursebot", "python_version": <sys.version>}
  • Imported sys module at the top of the file to expose Python version info in the response

Test plan

  • Start the backend server: cd backend && python -m uvicorn app:app --reload --port 8000
  • Test the endpoint: curl http://localhost:8000/version
  • Verify response contains version, name, and python_version fields

🤖 Generated with Claude Code

happyforever006 and others added 2 commits March 2, 2026 16:21
Add /version endpoint that returns version, name, and Python version info.
Import sys module to expose sys.version in the response.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove extra python_version field so the response matches the required
schema: {'version': '1.0.0', 'name': 'coursebot'}.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant