Skip to content

erichuang1994/FudanSE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FudanSE

Dependence

Tables

ER Diagram

  • Traveller(tid, username, password, email)
  • City(cid, name)
  • Picture(pid, description, time, file, tid, cid)
  • Message(mid, content, time, tid, pid)
  • Visit(tid, cid)
  • Follow(tid1, tid2)
  • Like(tid, pic)

Webpages

  1. Index
  • Login: form
  • Signup: button
  1. Signup
  • Form
  1. News board
  • Friends' new pictures
  1. Profile
  • Personal information
  • Follow/followed list (myself), follow/unfollow button (others)
  • Map with visited cities
  1. City
  • Pictures in this city: scrollable list
  1. Picture
  • Description
  • Information related to the picture
  • Comments: scrollable list
  • Publish a comment
  1. Setting
  • Modify personal information: form
  1. Add city
  • Search
  1. Upload picture
  • Form
  1. Follow list
  • List
  1. Followed list
  • List

API

URL of Images: /images/FILENAME

Prefix: /api

Description HTTP Method Endpoint Parameters Response
Login POST /login username, password
Logout POST /logout
Information of the picture GET /pictures/PICTUREID username, cityname, description, like_count, time, url
Comments of the picture GET /pictures/PICTUREID/messages [comments(descending time)]
Create comment POST /pictures/PICTUREID/messages content
Create traveller POST /travellers username, password, email
Get traveller GET /travellers/USERNAME username, email
List of visited cities GET /travellers/USERNAME/cities [cities]
Pictures of the city GET /travellers/USERNAME/cities/CITYNAME/pictures [pictures(descending time)]
List of followers GET /travellers/USERNAME/followers [username]
List of followings GET /travellers/USERNAME/followings [username]
Add visited city POST /user/cities/CITYNAME
Upload picture POST /user/cities/CITYNAME/pictures description(optional), picture(binary file)
Recent pictures of followings GET /user/dashboard [pictures(descending time)]
Follow people POST /user/followings/USERNAME
Unfollow people DELETE /user/followings/USERNAME
List of comments received GET /user/messages [comments(descending time)]
Wheather user likes the picture GET /user/pictures/PICTUREID like
Like or dislike the picture POST /user/pictures/PICTUREID like(boolean)
Update traveller PUT /user/settings password, email

About

Project for Software engineering development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published