You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Create routes for the User to fetch all the articles that they have whether it is published or unpublished.
Describe the solution you'd like
Create the Route:
/articles/me/<string:status>
Status could be "all, published, unpublished" or it status can be None as well.
Should be placed in one route called FetchArticleStatus. The published, unpublished and all should be determined as a query param called status.
Additional context
Create this route in the Article's routes.py folder.
If no status is given, then query for all the current_user's articles, which can be accessed with through the session. Return a max of 30 articles
If published status is given then query for all the current_user's published articles. Return max of 30.
If unpublished status is given then query for all the current_user's unpublished articles. Return max of 30.
If all status is given then query for all the current_user's articles. Return max of 30.
Miscellaneous
Document and test route in Postman in the Articles folder
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Create routes for the User to fetch all the articles that they have whether it is published or unpublished.
Describe the solution you'd like
Create the Route:
/articles/me/<string:status>
Status could be "all, published, unpublished" or it status can be None as well.
Should be placed in one route called FetchArticleStatus. The published, unpublished and all should be determined as a query param called status.
Additional context
Miscellaneous
The text was updated successfully, but these errors were encountered: