Skip to content

Tooaad/UPM_Social-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

APIRest

API Restful from Service Oriented Systems course

Subject

Implement a working prototype of a Facebook-like social network. Users must chat with others via posts and messages. Also, they must have the possibility to add or remove friends and check their profiles, messages, and posts. Here are some operations of the API:

  • Add/Delete a user
  • Check the basic data of any user
  • List all the users on the network. This list should be filtered by name
  • Post/Edit/Delete a message on your profile page
  • List all the messages on your profile page. This list should be filtered by a range
  • Add/Delete a friend
  • List all your friends on your profile page. This list should be filtered by a range
  • Send a message to the profile page of a friend
  • List all the messages sent to other friends. This list should be filtered by date and range
  • List friend's messages. This list should be filtered by content message

Tools

  • Java 8
  • Tomcat 9
  • Postman
  • Maven

JSON URIs

  • GET /usuarios

![Image from Gyazo](https://i.gyazo.com/51644a82c98aa5 409136aded4bdafe53.png)

Show all users registered


  • GET /usuarios/Kayle

Image from Gyazo

Show personal data of the user-specified


  • GET /usuarios/Kayle/pagina_personal

Image from Gyazo

Show all posts (URIs) of the user's personal page

  • GET /usuarios/Kayle/pagina_personal + user filter

Image from Gyazo

Show all posts created by a certain user (URIs) of the user's personal page


  • GET /usuarios/Kayle/pagina_personal/1

Image from Gyazo

Show post data


  • POST /usuarios/Kayle/pagina_personal

Image from Gyazo

Post a new message on Kayle's personal page


  • GET /usuarios/Kayle/amigos

Image from Gyazo

Show all your current friends

  • GET /usuarios/Kayle/amigos + name filter

Image from Gyazo

Same but show names that contain the content filter


  • GET /usuarios/Kayle/amigos/nuevos_mensajes

Image from Gyazo

Show all new friend posts on their personal pages

  • GET /usuarios/Kayle/amigos/mensajes + content filter

Image from Gyazo

Show all messages that contain the filter on their message content


  • GET /usuarios/Kayle/perfil

Image from Gyazo

Show public data of the user, such as friends, last messages, etc


Other

Data should have been stored on a SQL database though it was not mandatory, so it is saved on datos.txt

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages