Skip to content

Tools (Reverse Look up)

sandhyasrini edited this page Jul 18, 2017 · 8 revisions

Community Tools

APIS

METHOD API Desc
GET /tools/:toolid/ GET all communities for a given tool
GET /tools/ GET all communities for all tools

1.GET all communities for all tool

URI

HTTP GET /api/v1/tools/:toolid

URI Params

Required:

  toolid[text]

Data Params

  None

Success Response:

Code : 200
Content : {
"toolid": "sermo",
"toolname": "sermotool",
"communities": [
    "doctor.blr"
]
}

Error Response

    Code : 404 NOT FOUND
    Content : { error: 'Unexpected error occurred, please try again...!' }
  OR
    Code : 505 Internal Server error
    Content :{error:'Please enter a valid tool name'}

2.GET all communities for a given tools

URI

HTTP GET /api/v1/tools/

URI Params

Required:

  None

Data Params

  None

Success Response:

Code : 200
Content :[
{
    "toolid": "sermo",
    "avatar": "abcde.jpg",
    "domains": [
        "engineer.blr",
        "stackroute.blr"
    ],
    "toolname": "quoratool"
},
{
    "toolid": "forum",
    "avatar": "abcde.jpg",
    "domains": [
        "engineer.blr",
        "stackroute.blr"
    ],
    "toolname": "forumtool"
},

]

Error Response

    Code : 404 NOT FOUND
    Content : { error: 'Unexpected error occurred, please try again...!' }
  OR
    Code : 505 Internal Server error
    Content :{error:'Please enter a valid tool name'}