You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tyler Jacobs edited this page Mar 10, 2017
·
7 revisions
#Category Rest Service
##Getting All Categories
endpoint: "category"
When used without any parameters and as a GET method, it returns all the Category objects from the database.
##Creating a New Category
endpoint: "category"
We can also send a single Category JSON object to the endpoint to create a new category. The fields are: categoryId: Must be set null and will be filled by database using the sequence. categoryName: The name of the new category.
Example: Inserting a new category "Python"
{
categoryId : null,
categoryName : "Python"
}
##Deleting a Category
endpoint: "category/{name}"
name is the exact name of the category you wish to delete from the database.
The deleted category can no longer be used when creating assessments.