ScaleQuestionServiceRest Resource

Scale Question

Available Since
1.6.0

POST /2.0/lms/scalequestion/create

This method has been deprecated. Use POST /lms/api/v0/scalequestions/ instead.

Create a Scale Question

Available Since
1.6.0
Request Body
media type data type description
application/json ScaleQuestionApiVO (JSON)
REQUIRED

Request JSON (example):

 
 {
 	"question" : "Description of Question", // Description of Question (required)
 	"title" : "Title", // Title of Question (required)
 	"difficulty" : 1, // Difficulty (required)
 	"source": "source of question", // Source of Question (required)
 	"author": "jack", // Author of Question (required)
 	"tags": "lms ams elearning java", // Tags of Question (optional)
 	"topicId": 10, // Topic Id is parent item of Question (required)
 	"initialValue": 1.0, // Initial value (required)
 	"finalValue": 7.5, // Final value (required)
 	"scale": 5, // Scale value (required)
 	"correct": 7, // Correct value (required)
 	"valueDisplay": false, // Display in value format (required)
 	"disabled": false, // Disabled Question (optional)
 	"disableHTML": false, // Disable html in question description. Default is false (optional)
 	"inheritPermissions" : "INHERIT", // Type Inherit Permission "INHERIT" Or "NOT_INHERIT" (required)
 	"securityPermission": [  // Defines the security configurations for the Question (required)
 		    {
 			  "partyId": 193, // Party ID (required)
 			  "roles": [ "READ" ] // Permission level key. Acceptable values: NONE, READ, EXECUTE, WRITE, MODIFY, REMOVE, COMPLETE (required)
 		  }
 	  ],
 	"securityRestriction": [  // Defines the security configurations for the Question (required)
 		    {
 			  "partyId": 193, // Party ID (required)
 			  "roles": [ "MODIFY" ] // Restriction level key. Acceptable values: NONE, READ, EXECUTE, WRITE, MODIFY, REMOVE, COMPLETE (required)
 		  }
 	  ]
 }
 
            
Response Body
media type data type description
application/json object (JSON)
 
 This method just return HTTP 200 status and Object ScaleQuestionVO
{ content: { "id" : 1, "question" : "Description of Question", "title" : "Title", "difficulty" : 1, "source": "source of question", "author": "jack", "tags": "lms, ams, elearning, java", "topicId": 10, "initialValue": 1.0, "finalValue": 7.5, "scale": 5, "correct": 7, "valueDisplay": false, "disabled": false, "securityPermission": [ { "partyId": 193, "roles": [ "READ" ] } ], "securityRestriction": [ { "partyId": 193, "roles": [ "MODIFY" ] } ], "inheritPermissions" : "INHERIT" }, message: { message: "OK", detail: "OK", type: "INFO" } }
Available Since
1.6.0

POST /2.0/lms/scalequestion/edit

This method has been deprecated. Use PUT /lms/api/v0/scalequestions/ instead.

Edit a Scale Question

Available Since
1.6.0
Request Body
media type data type description
application/json ScaleQuestionApiVO (JSON)
REQUIRED

Request JSON (example):

 
 {
 	"id" : 1,
 	"question" : "Description of Question", // Description of Question (required)
 	"title" : "Title", // Title of Question (required)
 	"difficulty" : 1, // Difficulty (required)
 	"source": "source of question", // Source of Question (required)
 	"author": "jack", // Author of Question (required)
 	"tags": "lms ams elearning java", // Tags of Question (optional)
 	"topicId": 10, // Topic Id is parent item of Question (required)
 	"initialValue": 1.0, // Initial value (required)
 	"finalValue": 7.5, // Final value (required)
 	"scale": 5, // Scale value (required)
 	"correct": 7, // Correct value (required)
 	"valueDisplay": false, // Display in value format (required)
 	"disabled": false, // Disabled Question (optional)
 	"inheritPermissions" : "INHERIT", // Type Inherit Permission "INHERIT" Or "NOT_INHERIT" (required)
 	"securityPermission": [  // Defines the security configurations for the Question (required)
 		    {
 			  "partyId": 193, // Party ID (required)
 			  "roles": [ "READ" ] // Permission level key. Acceptable values: NONE, READ, EXECUTE, WRITE, MODIFY, REMOVE, COMPLETE (required)
 		  }
 	  ],
 	"securityRestriction": [  // Defines the security configurations for the Question (required)
 		    {
 			  "partyId": 193, // Party ID (required)
 			  "roles": [ "MODIFY" ] // Restriction level key. Acceptable values: NONE, READ, EXECUTE, WRITE, MODIFY, REMOVE, COMPLETE (required)
 		  }
 	  ]
 }
 
            
Response Body
media type data type description
application/json object (JSON)
 
 This method just return HTTP 200 status and Object ScaleQuestionVO
{ content: { "id" : 1, "question" : "Description of Question", "title" : "Title", "difficulty" : 1, "source": "source of question", "author": "jack", "tags": "lms, ams, elearning, java", "topicId": 10, "initialValue": 1.0, "finalValue": 7.5, "scale": 5, "correct": 7, "valueDisplay": false, "disabled": false, "securityPermission": [ { "partyId": 193, "roles": [ "READ" ] } ], "securityRestriction": [ { "partyId": 193, "roles": [ "MODIFY" ] } ], "inheritPermissions" : "INHERIT" }, message: { message: "OK", detail: "OK", type: "INFO" } }
Available Since
1.6.0

POST /2.0/lms/scalequestion/delete/{questionId}

This method has been deprecated. Use DELETE /lms/api/v0/scalequestions/{questionId} instead.

Delete a Scale Question

Available Since
1.6.0
Request Parameters
name type description constraints
questionId path ID Multiple Question to be removed long
Response Body
media type data type
application/json object (JSON)
Available Since
1.6.0

POST /2.0/lms/scalequestion/move/{questionId}/{topicId}

This method has been deprecated. Use POST /lms/api/v0/scalequestions/move/{questionId}/{topicId} instead.

Move a scale question to another topic

Available Since
1.6.0
Request Parameters
name type description constraints
questionId path ID scale question to be moved long
topicId path destination topic Id long
Response Body
media type data type
application/json object (JSON)
Available Since
1.6.0

POST /2.0/lms/scalequestion/release

This method has been deprecated. Use POST /lms/api/v0/scalequestions/release instead.

Release a Scale Question

Available Since
1.6.0
Request Body
media type data type description
application/json ReleaseVersionApiVO (JSON)
REQUIRED

Request JSON (example):

 
 {
 	"id" : 120, // Identifier of scale question (required)
 	"releaseNotes" : "My first version", // Text (html) of release (required)
 }
 
            
Response Body
media type data type description
application/json object (JSON)
 
 This method return HTTP 200 status and the question version id
{ "content": 121, // Question version id message: { message: "OK", detail: "OK", type: "INFO" } }