DRAFT: 5.4 Working With Questions and Categories Via API

To work with individual questions, use

URI: https://myIsoraURL/api/questions

Verb

Address

Notes

Additional Details

GET

/questions

/perms?page=X

&page_size=Y

Retrieves a paginated list of questions, up to Y at a time. Default page size is 25.

The beginning of each response includes a count and a link to the next page. Each entry in the list has an object id, which can be used to retrieve that individual question.

GET

/questions?search=string

&page_size=Y

Returns question objects matching the search string.

All fields of the questions are searched

POST

/questions

Creates a new question.

body {

 

}

DELETE

/questions/<id>

Removes the question. No content is returned.



 

To work with question categories, use

URI: https://myIsoraURL/api/questioncategories

Verb

Address

Notes

Additional Details

GET

/questioncategories

/questioncategories?page=X

&page_size=Y

Retrieves a paginated list of question categories, up to Y at a time. Default page size is 25.

The beginning of each response includes a count and a link to the next page. Each entry in the list has an object id, which can be used to retrieve that individual question category.

GET

/questions?search=string

&page_size=Y

Returns question category objects matching the search string.

All fields of the question categories are searched

POST

/questioncategories

Creates a new category.

body {

 

}

DELETE

/questioncategories/<id>

Removes the category. No content is returned.

??what are the restrictions on removal? No children? No questions?