我需要您的帮助,以使用javacsript创建具有多个Input的文件结构。
用户将通过以下输入
key1,value1,Datatype;key1,value1,Datatype;key1,value1,Datatype;key1,value1,Datatype;key1,value1,Datatype
....(输入键的数量不固定)
基于“输入”,我的结构如下所示
--batch_1234
Content-Type: multipart/mixed; boundary=changeset_5678
--changeset_5678
Content-Type: application/http
Content-Transfer-Encoding: binary
PUT IntegrationDesigntimeArtifacts(Id='URL',Version='1.0.1')/$links/Configurations('key1') HTTP/1.1
Accept: application/json
Content-Type: application/json
{
"ParamaterKey" : "key1",
"ParamaterValue" : "value1",
"DataType" : "xsd:string"
}
--changeset_5678
Content-Type: application/http
Content-Transfer-Encoding: binary
PUT IntegrationDesigntimeArtifacts(Id='URL',Version='1.0.1')/$links/Configurations('key2') HTTP/1.1
Accept: application/json
Content-Type: application/json
{
"ParameterKey" : "key2",
"ParameterValue" : "xyz",
"DataType" : "xsd:string"
}
--changeset_5678--
--batch_1234--
请帮助我。