Skip to content

Backend Routes#4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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