Skip to content

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

FieldTypeRequiredDescription
reasonstringYesReport reason
emailstringYesReporter email
transaction_idintegerNoAssociated transaction ID
media_idsstringNoComma-separated media IDs
commentstringNoAdditional 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

ParameterTypeRequiredDescription
inputstringYesSearch 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-data

Response

json
{
  "success": true,
  "errors_message": null,
  "data": {
    "currencies": [ ... ],
    ...
  }
}

Feedback

POST /api/feedback

Submit user feedback.

Authentication: Required

Request Body

FieldTypeDescription
messagestringFeedback text
typestringFeedback type (e.g. bug, feature)

Response (200)

json
{
  "success": true,
  "errors_message": null,
  "data": "Feedback submitted"
}

Fangate API Documentation