I am new to the Azure or cloud world. I am trying to set up a pet project using APIM and Logic App. I want to submit a file via APIM and use Logic App to process the file contents. I have created the swagger file for APIM below. How should the HTTP Trigger "Request JSON schema" in my Logic App look like in order to process this file. The file will be text/plain. Any help would be great. Here is part of the swagger definition.
"paths": {
"/submitEmployeeForm": {
"post": {
"description": "This Operation is used to submit employee files.",
"operationId": "submitEmployee",
"summary": "submitEmployeeDetails",
"responses": {
"200": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/employeeResponse"
}
},
"400": {
"description": "400 Bad request",
"schema": {
"$ref": "#/definitions/empReqError"
}
},
"401": {
"description": "Authorization Required"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
},
"500": {
"description": "Internal Server Error"
}
},
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "transactionId",
"in": "header",
"description": "Unique id to track requests.",
"type": "string",
"format": "uuid",
"required": true
},
{
"in": "formData",
"name": "employeefile",
"description": "upload employee file for processing",
"required": true,
"type": "file"
}
]
}
}