Question
Question Service
Web service endpoints specific to forum threads marked as questions.
Create Have Same Question
POST /questions/{contentID}/sameQuestion
Register that the requesting person also has the same question that this thread is asking.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
contentID | String | true | ID of the thread for which "I have the same question" acclaim should be marked |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is malformed |
403 (Forbidden) | You are not allowed to access or mark this thread |
404 (Not Found) | The specified thread does not exist |
Destroy Have Same Question
DELETE /questions/{contentID}/sameQuestion
Delete the "I have the same question" acclaim attached to the specified thread by the requesting user.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
contentID | String | true | ID of the thread for which "I have the same question" acclaim is being removed |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is malformed |
409 (Conflict) | You do not currently have a "I have the same question" acclaim registered for this thread |
403 (Forbidden) | You are not allowed to create or delete "I have the same question" acclaim for this thread |
404 (Not Found) | The specified thread does not exist |
Get Have Same Questions
GET /questions/{contentID}/sameQuestion
Return a paginated list of the people who also have the same question outlined in this thread.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
contentID | String | true | ID of the thread for which to return people who marked "I have the same question" |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
startIndex | Integer | false | Zero-relative index of the first person to be returned (default is 0) |
count | Integer | false | Maximum number of people to be returned (default is 25) |
fields | String | false | Fields to be returned on people who have the same question (default is @summary) |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is malformed |
403 (Forbidden) | You are not allowed to access this thread |
404 (Not Found) | The specified thread does not exist |