{
  "swagger": "2.0",
  "info": {
    "description": "Microservice which expose the mail service",
    "version": "0.0.1",
    "title": "Mail Microservice API",
    "contact": {}
  },
  "host": "dev-motion.cwbyminsait.com",
  "basePath": "/mail",
  "tags": [
    {
      "name": "mail-controller",
      "description": "Mail Controller"
    }
  ],
  "schemes": [
    "http",
    "https"
  ],
  "produces": [
    "application/json",
    "application/yaml",
    "text/plain"
  ],
  "paths": {
    "/v1/sendMail": {
      "post": {
        "tags": [
          "mail-controller"
        ],
        "summary": "Send mail",
        "description": "Send mail",
        "operationId": "sendMailUsingPOST",
        "consumes": [
          "application/json"
        ],
        "parameters": [
          {
            "in": "body",
            "name": "mailDTO",
            "description": "mailDTO",
            "required": true,
            "schema": {
              "$ref": "#/definitions/MailDTO"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Request Successful, review the resulting object. If infoError is not null, then a functional error has occurred in the back-end"
          },
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Bad request, review the request param"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Unexpected exception (Internal Server Error)"
          }
        }
      }
    }
  },
  "definitions": {
    "MailDTO": {
      "type": "object",
      "properties": {
        "cc": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "message": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "to": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "title": "MailDTO"
    }
  }
}
