Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Latest commit

 

History

History
47 lines (45 loc) · 2.09 KB

Endpoints.md

File metadata and controls

47 lines (45 loc) · 2.09 KB

Endpoints

All Endpoints from django application

    Endpoints

    localhost:8000

  • /auth Get the JWT Token
  • /api/

      posts/

    • list-posts/

      Get a list of all posts from people I follow
    • get-user-posts/

      Get a list of all posts a unique user
    • create-posts/

      Create a new Post
    • delete-post/

      Delete a post if i'm the owner
    • like-unlike-posts/

      Like or Remove the like from a unique post
    • check-like-post/

      check if i have my like in a certain post
    • search-user-post/

      send the request with ?search= to look for a post

      users/

    • create/

      Create a user with all fields
    • change-password/

      change the password
    • get-user/

      returns the username from the guy that send the token
    • login/

      Login a user
    • logout/

      logout the user

      profile/

    • get-profile/

      get the users profile with the username
    • search-profile/

      send the request with ?search= to look for a profile
    • follow-unfollow/

      To follow or unfollow a user
    • check-follow-profile/

      Checks if the user is already been followed
    • edit-my-profile/

      Edit your own profile

      chat/

    • all-messages/

      get all the messages
    • list-users/

      List the users that i'm following or that sent me a message
    • list-notifications/

      List all my notifications

      stories/

    • post-storie/

      create a new storie
    • list-stories/

      List the stories available for that user