Skip to content

ItsJuanito/Twitter-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-API

Twitter API clone containing user data and tweet timelines.

API url pattern

'method' - https://'url'/'end-route'/'slug(s)'

End routes for users

  • /users - to create a user
  • /users// - to authenticate user
  • /users/update - to edit user bio
  • /users/all - to get all of the users
  • /users/followers/add/ - add a follower
  • /users/followers/remove/ - remove a follower
  • /users/followers/all/ - get all followers from that user

End routes for user timelines

  • /tweets/ - post a tweet
  • /tweets/delete/ - delete a tweet
  • /tweets/timeline/public - get the public timeline
  • /tweets/timeline/user/ - get the timeline of a specific user
  • /tweets/timeline/home/ - get the home timeline

app.py file

  • Acts as the main driver file. Contains functions that run both (users) and (tweets) blueprints.

users.py file

  • Contains business logic for example: user authentication, following other users, and handling overall user requests and responses.

tweets.py file

  • Manages the timelines of each tweet along with the the actual publishing of tweets.

Database schema

Schema

About

Twitter API clone containing user data and tweet timelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published