I need to POST into a API I created for my own data base using dreamfactory.
The format the data needs to be is very specific, it needs to be formatted in a certain way otherwise it will fail.
{"resource":
[
{"CLIINTID":input.CLINTID,"TRDPRID":input.TRDPRID,"TRDPRTNR":input.TRDPRTNR,"TRNSTS":input.TRNSTS,"TPSUBNO":input.TPSUBNO,"CMTYP":input.CMTYP,"HOSTIP":input.HOSTIP,"HOSTNAM":input.HOSTNAM,"HOSTTYP":input.HOSTTYP,"PORT":input.PORT,"USERID":input.USERID,"PASSWD":input.PASSWD,"ACCOUNT":input.ACCOUNT,"EMAILADR":input.EMAILADR}
]
}
this is the format that it needs to be, I expanded it to show the brackets.
I have talked with support for two hours to make a post request and this is there solution.
{"CLIINTID":input.CLINTID,"TRDPRID":input.TRDPRID,"TRDPRTNR":input.TRDPRTNR,"TRNSTS":input.TRNSTS,"TPSUBNO":input.TPSUBNO,"CMTYP":input.CMTYP,"HOSTIP":input.HOSTIP,"HOSTNAM":input.HOSTNAM,"HOSTTYP":input.HOSTTYP,"PORT":input.PORT,"USERID":input.USERID,"PASSWD":input.PASSWD,"ACCOUNT":input.ACCOUNT,"EMAILADR":input.EMAILADR}
}
});
Creator is taking the [ ] brackets and converting them to { } every time I save which causes my API to not see any records.
Is there a way to get this to work?