Interests List
This endpoint provides a list of available interests in the LAX application.
Request
Endpoint
- Method: GET
- URL:
/api/lists/interests
Request Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Accept | application/json | Yes |
Success Response
{
"success": true,
"message": "Data has been retrieved successfully",
"data": [
{
"id": 1,
"name": "Technology"
},
{
"id": 2,
"name": "Art"
}
],
"status_code": 200
}
Error Responses
Server Error (500)
{
"success": false,
"message": "Something went wrong",
"data": null,
"status_code": 500
}
Example Implementation Flow
- Make a GET request to
/api/lists/interests - Upon success:
- Store the interests list in local state
- Use the list for user preference selection
- Can be used in user profile customization
- Upon error:
- Display error message to user
- Implement retry mechanism if needed