Skip to content

API Documentation

Fzaero edited this page Dec 22, 2016 · 7 revisions

Home /

GET /home

Returns the homepage.

GET /Comment/

Returns the comment page with id=.

GET /search/

returns search result for given parameters.

GET /signup

Returns the signup page.

GET /accounts/

Here we have account related requests.

API CALLS

POST API/AddTopic

Add Topics with given parameters.

Example request:

Example API request:

topicName="Donald Trump"

tag=Politician

description= Occupation

URL: www.wikimedia.com/politician

GET API/SearchTopic

Returns search results of topic by :

  1. string match.

  2. Mutual tags.

  3. Wikidata references.

Example API request:

search: Donald

POST /API/FollowTopic

Follows topics for the user with given id.

Example Request:

TopicId=5

GET API/GetFollowedTopic

Gets followed topics of user.

GET API/GetViewedTopic

Gets viewed topics of user.

GET API/GetCommentedTopic

Gets commented topics of user.

GET API/TopicLister

Gets list of topic from search parameter for autocomplete.

POST API/AddComment

Add Comment to given topic.

topicId: 1

text: HELP

POST API/EditComment

Edits given comment.

Example request:

commentId: 1

text: HELP

GET API/GetCommentVoters

Gets users votes on given topic.

Example request:

TopicId=5

POST API/RateComment

Request to rate the given comment.

Example Request:

comment : 5

direction : upvote

POST API/AddRelation

Creates a new relation between given two topic.

Example API request:

topic1 : 1

topic2 : 2

label : asd

isBidirectional= 0 //False, 1=True

POST API/RateRelation

Rates given relation.

Example Request:

relation : 5

direction : upvote

POST API/AddTag

Add given tag to given topic.

Example API request:

topicId : 1

label : "sd

description : asd

URL : www.asd.com

GET API/SearchTag

Searches for given tag.

Example API request:

URL: www.asd.com

GET /profile/[userId]

Retrieves the profile of the user with "userId".

Project

Members

Meetings (all in 2016)

Preliminary Meetings:

Meetings In-production:

within Sub-groups:

with Customer:

Milestones

###Old assignments

Clone this wiki locally