Forum Discussion

nabatt's avatar
nabatt
New Member
2 years ago

Open API 3 Or Swagger: Email with content and multiple attachment

I would expect to have some code with complex content and multiple attachment(like an array), something like this:

 

 

 

 

 /somepath:
    put:
      consumes:
        - multipart/form-data
      description: Render and send an email
      operationId: render-mail
      parameters:
        - description: The Data model
          in: body
          name: somedata
          required: true
          schema:
            $ref: '#/definitions/data.somedata'
            type: object
        - description: Base 64 upload attachment
          in: formData
          name: file
          type: array
          items:
            type: string
            format: binary

 

No RepliesBe the first to reply