Esempio n. 1
0
        public ActionResult <IEnumerable <string> > Post([FromBody] string value)
        {
            JObject mapped_json = MyUtility.MappingEngine(value);

            //return error if mapping not done correctly


            //Validation Engine
            JObject validated_json = MyUtility.ValidationEngine(mapped_json);

            JObject mapped_json_with_role = JObject.Parse(value);

            mapped_json_with_role["Operations"] = mapped_json;

            JObject jout = MyUtility.Authentication_query(mapped_json_with_role);

            return(new string[] { "validated_json", validated_json.ToString(), "authentication_json", jout.ToString() });
        }