-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Is your feature request related to a problem? Please describe.
We need to make a more clear way to reject/accept articles for organization and tag moderators
Models
None
Schemas
None
API Routes
Organization Routes
- Reject Article
- Accept Article
Tag Routes
- Reject Article
- Accept Article
Endpoints | HTTP Method | Description | Tested
/api/organizations/<org_slug>/articles/<slug> | DELETE| Route to remove an article from an organization| :--:
/api/organizations/<org_slug>/articles/<slug> | PUT| Route to add an article to an organization| :--:
/api/tags/<tag_slug>/articles/<articleSlug> | DELETE| Route to remove an article from a tag | :--:
/api/tags/<tag_slug>/articles/<articleSlug> | PUT| Route to add an article to a tag | :--:
Create/Edit Functions
Remove Article from tag
- If this route is called it should remove the targeted article from the tags
needsReviewcolumn and remove it from the tag'sarticlescolumn as well
Accept Article from tag
- If this route is called it should remove the article from the
needsReviewcolumn and add it to the tag'sarticlescolumn.
Remove Article from organization
- If this route is called it should remove the targeted article from the organization's pending_articles list and remove it from the organization's
articlescolumn as well
Accept Article from organization
- If this route is called it should remove the article from the organization's
pending_articlescolumn and add it to the organization'sarticlescolumn.
Additional Context
- After implementing the above routes, remove
review_articleroute frombackend/conduit/tags/views.pyand removereviewed_articleroute frombackend/conduit/organizations/views.py