cristighr1995 / Holiholic

A trip planner and travel guide application which offers activity suggestions and personalized day plans based on user’s preferences and profile.
Apache License 2.0
2 stars 0 forks source link

[HH-5][FEED] Create feed module #5

Closed cristighr1995 closed 5 years ago

cristighr1995 commented 5 years ago

This module will implement the logic and the necessary requests between client and server modules for the feed module.

Users can add new posts and new questions. These 2 are very similar and will be implemented in the same module. Next is described how questions manipulation is implemented and similar will be for posts. Basically posts will have the same body but with a different type parameter.

Questions

  1. getQuestions is a HTTP GET request which returns a list with all the questions from a city

Request example http://localhost:8094/getQuestions?city=<city-name>&md5Key=<valid-md5-key>


  1. getQuestionDetails is a HTTP GET request which returns details for a specific question. This should be used when a user is interested in a specific questions and wants to see for example all comments for that questions etc.

Request example http://localhost:8094/getQuestionDetails?city=<city-name>&qid=<question-id>&md5Key=<valid-md5-key>


  1. updateQuestion is HTTP POST request which can do multiple operations for a specific question.

The operations a user can do for a specific questions are: