Question

4
Replies
1538
Views
saleemshaik Member since 2014 6 posts
Aaseya IT services
Posted: 4 years ago
Last activity: 3 years 4 months ago
Closed

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",

          "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

Data Integration
Moderation Team has archived post
Share this page LinkedIn