Other Endpoints
Additional API endpoints for reporting and address autocomplete. These exist in the codebase but may not be fully documented in Swagger.
Report content or transaction
POST /api/report
Report or flag inappropriate content or transactions.
Authentication: None (public endpoint)
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
reason | string | Yes | Report reason |
email | string | Yes | Reporter email |
transaction_id | integer | No | Associated transaction ID |
media_ids | string | No | Comma-separated media IDs |
comment | string | No | Additional details |
Example Request
bash
curl -X POST https://fangate.info/api/report \
-H "Content-Type: application/json" \
-d '{
"reason": "inappropriate_content",
"email": "reporter@example.com",
"transaction_id": 123,
"media_ids": "1,2,3",
"comment": "Additional context"
}'Response
Returns JSON response (status may vary).
Google Maps autocomplete
GET /api/maps/autocomplete
Address autocomplete for user registration/profile. Uses Google Places API.
Authentication: Required (typically)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Search input (partial address) |
Example Request
bash
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://fangate.info/api/maps/autocomplete?input=123+Main+St"Response
Returns address suggestions from Google Places API. Format depends on Google API configuration.
App data
GET /api/app-data
Returns app configuration data (e.g. feature flags, supported currencies, config).
Authentication: None (public)
Example Request
bash
curl https://fangate.info/api/app-dataResponse
json
{
"success": true,
"errors_message": null,
"data": {
"currencies": [ ... ],
...
}
}Feedback
POST /api/feedback
Submit user feedback.
Authentication: Required
Request Body
| Field | Type | Description |
|---|---|---|
message | string | Feedback text |
type | string | Feedback type (e.g. bug, feature) |
Response (200)
json
{
"success": true,
"errors_message": null,
"data": "Feedback submitted"
}