Skip to content

Feat/api endpoint#214

Merged
Userunknown84 merged 3 commits into
Userunknown84:mainfrom
Aharshi3614:feat/API_endpoint
Jun 23, 2026
Merged

Feat/api endpoint#214
Userunknown84 merged 3 commits into
Userunknown84:mainfrom
Aharshi3614:feat/API_endpoint

Conversation

@Aharshi3614

Copy link
Copy Markdown
Contributor

Closes #209

Added API versioning with /api/v1 prefix and comprehensive API documentation.

Changes:

  • All endpoints now accessible via /api/v1/ prefix
  • Created docs/API.md with all endpoints documented
  • Kept backward compatibility (old endpoints still work)

Endpoints Versioned:

Before After
/api/auth/login /api/v1/auth/login
/api/history /api/v1/history
/analytics /api/v1/analytics
/api/chat /api/v1/chat

Endpoints Documented:

  • Auth Routes (register, login, profile)
  • Prediction Routes (predict, bulk-predict, feedback)
  • Analytics Routes (page-visits, visits-by-role)
  • Email Integration (Gmail, Outlook)
  • Public Routes (health, wordcloud, importance)

Response Format Documented:

{
  "success": true,
  "data": { ... }
}

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Aharshi3614 is attempting to deploy a commit to the Aditya Sharma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Userunknown84 Userunknown84 merged commit e40112a into Userunknown84:main Jun 23, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API Versioning

2 participants