License Requirement All employees must have a collaboration license (enterprise-wide) to use the RESTful API.
Contact your QualiWare representative or email us at support@qualiware.com for more information.
Happy
Impatient
Angry

REST-ful WebService

Complete options list

{wsUrl}/help
Examples in this page are built using jQuery v1.11-3.

Login and run Generic Query

Code:
// WebForms Url
var qisurl = location.protocol + "//" + location.host + "/qef101/webmodules/webforms";
// Session ID
var sid = null;
// Repository ID
var rid = "Demo";
// Repsository configuration Name
var cnm = "BaseConfiguration";
// Repsository configuration ID
var cid = "6aa12305-3137-46e0-b9b2-a574fae1e7c1";
// Default data type
var datatype = "json";
// Default user id
var userid = "Admin";
// Default user password
var password = "Admin";

//Login and receive session ID
$.ajax({
	type: "POST",
	contentType: "application/json; charset=utf-8",
	dataType: "{dataType}",
	url: "{wsUrl}/login",
	data: JSON.stringify({
		authority: "", 
		authorityKind: "Local", 
		login: "{userid}", 
		password: "{password}"
	})
})
.done(function(data){
	// data handling
	sid = $.parseJSON(data);
});

//Execute Generic Query
$.ajax({
	type: "POST",
	dataType: "{dataType}",
	url: "{wsUrl}/qis/{sessionId}/rep/{repositoryId}/conf/{configurationId}/CSharpMethod/GWE_ServiceHandlers.GetGenericQueryFull",
	data: window.JSON.stringify({
		objectAttributes: [
			{
				Name: "GenericQuery", 	// QualiWare template for queries
				Format: "PlainText", 	// default text format in request
				Value: "8327f676-0ae5-4c16-8ab5-eb1d91635240" 	// query id
			}
		]
	})
})
.done(function(data){
	// data handling
	result = $.parseJSON(data);
}
.fail(function(){
	// invalid qsql query
});