Skip to content

Conversation

Copy link

Copilot AI commented Jan 11, 2026

Documented all 47 REST endpoints across the Hexathon backend API in a new API_ENDPOINTS.md file.

Endpoints Cataloged

Authentication & Public (2 + 2)

  • Root, health check
  • Register, login with JWT token generation

Resource Management (15)

  • Categories: Full CRUD with admin restrictions
  • Items: Full CRUD with optional category filtering
  • Cart: View, add, remove items, checkout

Team & Event Management (18)

  • Teams: CRUD, password regeneration, bulk operations
  • Problem Statements: CRUD, per-team generation with 3-attempt limit, confirmation flow
  • Submissions: Create/update with Figma/doc URLs, admin deletion

Participant Management (7)

  • Full CRUD with check-in status tracking and search

Documentation Structure

  • HTTP methods, paths, request schemas with types
  • Auth requirements (JWT) and role-based access (Team vs Admin)
  • Query parameters and response formats
  • Standard error codes and response schemas

Example endpoint format:

### Admin Endpoints (Admin authentication required)
- **POST** `/api/v1/items/` - Create a new item
  - Body: `{"name": string, "photo_url": string, "description": string, "price": int, "category_id": string}`

Built on Fiber (Go) web framework with /api/v1 base path.

Original prompt

what all endpoints are there in this backend?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 11, 2026 06:31
Co-authored-by: NitinTheGreat <83699589+NitinTheGreat@users.noreply.github.com>
Co-authored-by: NitinTheGreat <83699589+NitinTheGreat@users.noreply.github.com>
Copilot AI changed the title [WIP] Document all available backend endpoints Add comprehensive API endpoint documentation Jan 11, 2026
Copilot AI requested a review from NitinTheGreat January 11, 2026 06:33
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.

2 participants