API Documentation - bounswe/bounswe2016group12 GitHub Wiki
Returns the homepage.
Returns the comment page with id=.
returns search result for given parameters.
Returns the signup page.
Here we have account related requests.
Add Topics with given parameters.
Example request:
Example API request:
topicName="Donald Trump"
tag=Politician
description= Occupation
URL: www.wikimedia.com/politician
Returns search results of topic by :
-
string match.
-
Mutual tags.
-
Wikidata references.
Example API request:
search: Donald
Follows topics for the user with given id.
Example Request:
TopicId=5
Gets followed topics of user.
Gets viewed topics of user.
Gets commented topics of user.
Gets list of topic from search parameter for autocomplete.
Add Comment to given topic.
topicId: 1
text: HELP
Edits given comment.
Example request:
commentId: 1
text: HELP
Gets users votes on given topic.
Example request:
TopicId=5
Request to rate the given comment.
Example Request:
comment : 5
direction : upvote
Creates a new relation between given two topic.
Example API request:
topic1 : 1
topic2 : 2
label : asd
isBidirectional= 0 //False, 1=True
Rates given relation.
Example Request:
relation : 5
direction : upvote
Add given tag to given topic.
Example API request:
topicId : 1
label : "sd
description : asd
URL : www.asd.com
Searches for given tag.
Example API request:
URL: www.asd.com
Retrieves the profile of the user with "userId".