API Endpoint Testing
You are not authenticated. Some endpoints require authentication.
Below are all available API endpoints for testing. Use these examples with curl, Postman, or the Flutter app.
Register User
POSTCreate new AppUser account
URL:
http://poker.reneo.io/api/players/auth/register/
Example Request Body:
{'email': 'user@example.com', 'display_name': 'John Doe', 'firebase_uid': 'firebase_unique_id'}
cURL Example:
curl -X POST http://poker.reneo.io/api/players/auth/register/ \
-H "Content-Type: application/json" \
-d '{'email': 'user@example.com', 'display_name': 'John Doe', 'firebase_uid': 'firebase_unique_id'}'
Verify Email
POSTVerify email with 6-digit code
URL:
http://poker.reneo.io/api/players/auth/verify-email/
Authentication Required
Example Request Body:
{'code': '123456'}
cURL Example:
curl -X POST http://poker.reneo.io/api/players/auth/verify-email/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-d '{'code': '123456'}'
Resend Verification
POSTRequest new verification code
URL:
http://poker.reneo.io/api/players/auth/resend-verification/
Authentication Required
Example Request Body:
{'email': 'user@example.com'}
cURL Example:
curl -X POST http://poker.reneo.io/api/players/auth/resend-verification/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-d '{'email': 'user@example.com'}'
Create Venue
POSTCreate new venue (requires verified email)
URL:
http://poker.reneo.io/api/players/venues/
Authentication Required
Example Request Body:
{'name': 'My Poker Club', 'org_type': 'club', 'description': 'Weekly poker games', 'contact_email': 'contact@example.com'}
cURL Example:
curl -X POST http://poker.reneo.io/api/players/venues/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-d '{'name': 'My Poker Club', 'org_type': 'club', 'description': 'Weekly poker games', 'contact_email': 'contact@example.com'}'
List My Venues
GETGet all venues owned by current user
URL:
http://poker.reneo.io/api/players/venues/my_venues/
Authentication Required
cURL Example:
curl -X GET http://poker.reneo.io/api/players/venues/my_venues/ \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
Get User Profile
GETGet current authenticated user profile
URL:
http://poker.reneo.io/api/players/me/
Authentication Required
cURL Example:
curl -X GET http://poker.reneo.io/api/players/me/ \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
List All Venues
GETGet all venues (public)
URL:
http://poker.reneo.io/api/players/venues/
cURL Example:
curl -X GET http://poker.reneo.io/api/players/venues/
Testing Tips:
- For Firebase tokens, use the token from your Flutter app login
- Tokens can be passed in
Authorization: Bearer TOKENheader - All POST requests require
Content-Type: application/json - Email verification is required before creating venues