How to create rules based on JSON Content,like rules generated by Connect-REST Wizard if we give sampleJSONResponse. In Connector Wizard, rules are generated by generateRulesFromMetadata() function in serviceutils but i need to create only DataModel rules(Paages/list/singlevalue properties).Can someone please tell how this function works if we give other pyGenerationPurpose or is there someother way to create rules.
yeah even i tried with that approach....Im getting error at the end "Canceling rule generation, Invalid state: finished, must invoke 'start' method before invoking setEstimates".Im getting this error only if i add sample responsejson file otherwise rest rule is created without any error.i think its expecting some other properties
Could you capture the rule data (XML) for the request page where you are setting pyGenerationPurpose and post that on this forum? As Vipin suggests, you may be using generateRulesFromMetadata in a way that is causing problems. With your input data we can find out if the problem is on your side or ours.