Closed yavuzsa closed 1 year ago
The enpoint URL is GET "/activity" It takes HttpServletRequest as input so there is no need to send any custom input. Example responses are:
[ { "id": 4, "user_id": 4, "user_name": "salih123", "user_media": null, "action_type": "F", "story_id": null, "story_title": null, "following_id": 5, "following_name": "test", "action_timestamp": "2023-11-13T16:56:07.820+00:00" }, { "id": 3, "user_id": 4, "user_name": "salih123", "user_media": null, "action_type": "F", "story_id": null, "story_title": null, "following_id": 3, "following_name": "Salih", "action_timestamp": "2023-11-13T16:52:05.354+00:00" }, { "id": 2, "user_id": 4, "user_name": "salih123", "user_media": null, "action_type": "C", "story_id": 1, "story_title": "My first adventure", "following_id": null, "following_name": null, "action_timestamp": "2023-11-13T16:51:56.827+00:00" }, { "id": 1, "user_id": 4, "user_name": "salih123", "user_media": null, "action_type": "L", "story_id": 1, "story_title": "My first adventure", "following_id": null, "following_name": null, "action_timestamp": "2023-11-10T18:18:52.384+00:00" } ]
[x] Finalize the code for activity endpoint.
[x] Provide instructions on how to use the endpoint.