Make sure the view functions in backend/api/views/post_views.py are converted to DRF. And integrated to what's been done so far in auth_views.py. - [ ] Caching is integrated for all post requests - [ ] Media handling is integrated for all post requests - [ ] Post related models are handled for all post requests - [ ] create_post is integrated => POST a single post - [ ] Hashtag get created if needed - [ ] File upload is working - [ ] Add following notification based on preferences - [ ] edit_post is integrated => PUT a single post - [ ] Hashtag get created/deleted if needed - [ ] File upload is working - [ ] Add following notification based on preferences - [ ] delete_post is integrated => DELETE a single post - [ ] Related orphan files get deleted - [ ] Related orphan hashtag get deleted - [ ] Related following notification gets deleted - [ ] get_user_posts is integrated => GET all post from a specified user - [ ] Must support limit argument - [ ] get_single_post is integrated => GET a single post from post_id - [ ] get_multiple_posts is integrated => GET posts from specified list of post_id - [ ] get_global_newsfeed => GET posts from specified post_type - [ ] Handles limit - [ ] get_newsfeed => GET posts from following, hashtags, limit - [ ] add_post_bookmark => POST a bookmark relative to a specified post_id - [ ] delete_post_bookmark => DELETE a bookmark relative to a specified post_id - [ ] get_bookmarked_posts => GET list of all bookmarked post
Make sure the view functions in backend/api/views/post_views.py are converted to DRF. And integrated to what's been done so far in auth_views.py.
Caching is integrated for all post requests
Media handling is integrated for all post requests
Post related models are handled for all post requests
create_post is integrated => POST a single post
edit_post is integrated => PUT a single post
delete_post is integrated => DELETE a single post
get_user_posts is integrated => GET all post from a specified user
get_single_post is integrated => GET a single post from post_id
get_multiple_posts is integrated => GET posts from specified list of post_id
get_global_newsfeed => GET posts from specified post_type
get_newsfeed => GET posts from following, hashtags, limit
add_post_bookmark => POST a bookmark relative to a specified post_id
delete_post_bookmark => DELETE a bookmark relative to a specified post_id
get_bookmarked_posts => GET list of all bookmarked post