Question

4
Replies
1553
Views
saleem shaik (saleemshaik)
Aaseya IT services

Aaseya IT services
IN
saleemshaik Member since 2014 6 posts
Aaseya IT services
Posted: January 29, 2016
Last activity: May 16, 2017
Posted: 29 Jan 2016 3:31 EST
Last activity: 16 May 2017 16:36 EDT
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",

Show More

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

Show Less
Data Integration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.