bounswe / bounswe2024group11

The proof of work and the product from the 2024G11
https://bounswe.github.io/bounswe2024group11/
11 stars 1 forks source link

feat(backend): return user-profile information together #449

Closed Meminseeker closed 3 months ago

Meminseeker commented 3 months ago
  1. This PR updates the Post view to include user profile information in the response, as requested by the frontend team.

The endpoint can be reached at user-profile/<str:username>/

  1. On the fly calculated fields for the Post model, such as like_count, etc., was returned only in the search results only. Now, they are returned in other posts/ endpoints as well.

  2. The changes ensure that the combined User and Profile fields are returned along with the Post fields in a single endpoint.