C# Class WorldSurveyKit.Controllers.ImporterController

Inheritance: ApiController
Mostrar archivo Open project: ntheile/World-Survey-Kit

Public Methods

Method Description
Post ( Newtonsoft.Json.Linq.JObject jJson ) : Newtonsoft.Json.Linq.JObject

Imports data in bulk, creates a new file instance and creates responses for that instance { file: fileId, fileName: name, questionsIdMap: ["34","35","36","37"] responses: [ { 0: "q1a", 1: "q2a" }, // in this case 0 maps to questionId 34 { 0: "q2a", 1: "q22a" }, { 0: "q3a", 1: "q23a" }, { 0: "q4a", 1: "q24a" } ] } json response with message array of inserted data {"message":["Created file : labowski 0, id: 115","Added response to : labowski 1 , response: bowling , id: 256"]}

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Post() public method

Imports data in bulk, creates a new file instance and creates responses for that instance { file: fileId, fileName: name, questionsIdMap: ["34","35","36","37"] responses: [ { 0: "q1a", 1: "q2a" }, // in this case 0 maps to questionId 34 { 0: "q2a", 1: "q22a" }, { 0: "q3a", 1: "q23a" }, { 0: "q4a", 1: "q24a" } ] } json response with message array of inserted data {"message":["Created file : labowski 0, id: 115","Added response to : labowski 1 , response: bowling , id: 256"]}
public Post ( Newtonsoft.Json.Linq.JObject jJson ) : Newtonsoft.Json.Linq.JObject
jJson Newtonsoft.Json.Linq.JObject
return Newtonsoft.Json.Linq.JObject