Skip to content

recepkefelii/intercom-backend

Repository files navigation

Nestjs Social-Media Rest Api

Nestjs social media restful api example

Installation & Clone

# Download this project
git clone https://github.com/recepkefelii/social-media
# Build and Run
cd ./social-media
npm install

# API Endpoint : http://localhost:8000/api/

API

api/auth/register

  • POST : Create a new account

api/auth/login

  • POST : Login account

/api/profile

  • GET : fetch user information

/api/file/upload

  • POST : Update user profile photo

/api/post/create

  • POST : Create new post

/api/post/update/:id[integer]

  • PATCH : Update post by id

/api/post/delete/:id[integer]

  • DELETE : Delete post by id

/api/post/all

  • GET : Fetch all posts

/api/post/user/john[username]

  • GET : Fetch Post by username

/api/followers

  • GET : Fetch the user's followers

/api/following

  • GET : Fetch the user's following

/api/follow/:id[integer]

  • GET : Follow user by id

/api/unfollow/:id[integer]

  • GET : Unfollow user by id

Todo

  • Support basic REST APIs.
  • Support Authentication with user for securing the APIs.
  • Write the tests for all APIs.
  • Detailed documentation will be created
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy