codersforcauses / codersforcauses/transplant

Create Backend view for view registrations page

Open
#61 1 comment 0 reactions 1 assignee Claimed by @pvkudr View on GitHub
backend
Dominant language
TypeScript
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# Story:
AS A Transplant Games registrant,
I WANT to view all my registrations,
SO THAT I can see who I've registered and their status.

## Details:
Create API endpoint to fetch user's registrations with registrant names from joined tables.

**Acceptance Criteria:**
- GET /api/registrations/ endpoint for current user only
- Join Registration with RegistrantDetail models to get names
- Response: registration ID, first_name, last_name, status, created_at
- Handle null/empty names gracefully

**Query approach:**
```python
# Join registrations with registrant_details
Registration.objects.filter(user=request.user).select_related('registrant_details')
# Access via: registration.registrant_details.first_name
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.