Skip to content

Backend Routes #4

@Mu7ammadAbed

Description

@Mu7ammadAbed

BackEnd Routes

Auth

Route Method Description Status
api/v1/signup POST sign up into system. 👍
api/v1/login POST log in into system. 👍
api/v1/logout GET log out form the system. 👍

Posts

Route Method Description Status
api/v1/feed GET Get all posts that user following added. ---
api/v1/explore GET Get all posts ordered by date. ---
api/v1/post POST Create new post. ---
api/v1/post/:postId GET Get a specified post. ---
api/v1/post/:postId PUT Update a specified post. ---
api/v1/post/:postId DELETE Delete post that have the specified type. ---
api/v1/post/:type GET Get posts that have a specified type. ---
api/v1/post?q= GET Get posts that have a specified query. ---

Products

Route Method Description Status
api/v1/products GET Get all posts that have category products. 👍

Comments

Route Method Description Status
api/v1/posts/:postId/comments GET Get all comments for specified post. 👍
api/v1/comment/:commentId GET Get a specified comment. 👍
api/v1/comment/:commentId PUT Update a specified comment. 👍
api/v1/comment/:commentId DELETE Delete a specified comment. 👍
api/v1/comment/ POST Add a new comment for the specified post. 👍

Like

Route Method Description Status
api/v1/posts/:postId/like POST Like a specified post. 👍

Follow

Route Method Description Status
api/v1/follow/:userId POST Folow a specified user or unfollow. 👍

Trending

Route Method Description Status
api/v1/trending/products GET Get trending products. 👍
api/v1/trending/users GET Get trending users. 👍

Users

Route Method Description Status
api/v1/users GET Get all users. 👍
api/v1/users/:userId GET Get a specified user. 👍
api/v1/users/:userId PUT Update a specified user. 👍
api/v1/users/:userId/activation POST active or disactive a specified user. 👍

Charts

Route Method Description Status
api/v1/charts GET Get all charts data. 👍

categories

Route Method Description Status
api/v1/categories GET Get all categories. 👍
api/v1/categories POST Add new category. 👍
api/v1/categories/:categoryId GET Get a specified category. 👍
api/v1/categories/:categoryId PUT Update a specified category. 👍
api/v1/categories/:categoryId DELETE Delete a specified category. 👍

messages and notifcations.

These routes are not discussed yet, there are no tables for them untill now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Back-EnddocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions