Question
Aaseya IT services
IN
Last activity: 16 May 2017 16:36 EDT
Need help to build a data structure for Connect-Rest service; mapping "type" : "file"
Hi All,
I need to build a data structure for the Connect-Rest service.please find the details about the method below.
I have a problem for mapping "type" : "file" .what is the equivalent mapping for file type in pega.
"post" : {
"tags" : [ "Documents" ],
"description" : "Creates a document and returns its identifier",
"operationId" : "createDocument",
"consumes" : [ "multipart/form-data" ],
"produces" : [ "text/plain" ],
"parameters" : [ {
"name" : "name",
"in" : "formData",
"description" : "Document name",
"required" : true,
"type" : "string"
}, {
"name" : "title",
"in" : "formData",
"description" : "Document title",
"required" : false,
"type" : "string"
}, {
"name" : "subject",
"in" : "formData",
"description" : "Document subject",
"required" : false,
"type" : "string"
}, {
"name" : "author",
"in" : "formData",
"description" : "Document author",
"required" : false,
"type" : "string"
}, {
"name" : "tags",
"in" : "formData",
"description" : "Document tags",
Hi All,
I need to build a data structure for the Connect-Rest service.please find the details about the method below.
I have a problem for mapping "type" : "file" .what is the equivalent mapping for file type in pega.
"post" : {
"tags" : [ "Documents" ],
"description" : "Creates a document and returns its identifier",
"operationId" : "createDocument",
"consumes" : [ "multipart/form-data" ],
"produces" : [ "text/plain" ],
"parameters" : [ {
"name" : "name",
"in" : "formData",
"description" : "Document name",
"required" : true,
"type" : "string"
}, {
"name" : "title",
"in" : "formData",
"description" : "Document title",
"required" : false,
"type" : "string"
}, {
"name" : "subject",
"in" : "formData",
"description" : "Document subject",
"required" : false,
"type" : "string"
}, {
"name" : "author",
"in" : "formData",
"description" : "Document author",
"required" : false,
"type" : "string"
}, {
"name" : "tags",
"in" : "formData",
"description" : "Document tags",
"required" : false,
"type" : "array",
"items" : {
"type" : "string"
},
"collectionFormat" : "multi"
}, {
"name" : "extendedProperties",
"in" : "formData",
"description" : "Document extended properties",
"required" : false,
"type" : "array",
"items" : {
"type" : "string"
},
"collectionFormat" : "multi"
}, {
"name" : "content",
"in" : "formData",
"description" : "Document content",
"required" : false,
"type" : "file"
} ],
"responses" : {
"200" : {
"description" : "Document identifier",
"schema" : {
"type" : "string"
}
},
"400" : {
"description" : "`Bad Request`: One or more parameters are missing or unknown"
},
"401" : {
"description" : "`Unauthorized`: Authentication header not provided or session expired"
},
"403" : {
"description" : "`Forbidden`: You are not authorized to use this application"
},
"429" : {
"description" : "`Too many requests`: The client is sending too many requests with failure"
},
"500" : {
"description" : "Internal API error / Server error"
}
},
}
Please help me.
Message was edited by: Lochana DurgadaVijayakumar