So I am using the "createReplica" api to create the geodatabase for my feature layer I pass all the parameters required.
If I use this api for the public feature layers, It gives me the whole JSON of the mapserver,
Also I need to confirm how will I know the geometry type dynamically of any layer I am downloading geodatabase for.
I tried following:
parameters: geometry, geometryType, inSR, layers, replicaName, transportType, async, syncModel, dataFormat
Am I sending invalid replica definition, or the feature layer I am using has no capability, or I should use something else to download geodatabse using rest apis. [ Definitely not Native SDK ]