Hi,
I have been playing with the Microsoft Flow for a few days to implement one of our business sceneario.
We have cloud solution something that manages documents. Something similar to Google Drive/Dropbox
What i am trying to demonstrate is when a new file is created in Sharepoint(Office 365), i want that file to be upload into our application. In order to do that we created custom api with the following swagger definition. Unfortunately i am not able to get it working
I compared the input messages between our custom api flow and dropbox flow. Both of them differs
In Dropbox i see as follows

And in our custom api i see as follows

Now my question is what should be swagger definition for file upload. Currently my swagger definition for the service looks like as follows
/{community_id}/rooms/{room_id}/content/{id}/children:
post:
operationId: uploadFile
summary: Upload single file to folder
description: |
The single file upload endpoint çreates file in folder.
The response includes status and meta info about created file.
security:
- OauthSecurity: []
consumes:
- application/octet-stream # and/or application/x-www-form-urlencoded
parameters:
- $ref: "#/parameters/community_id"
- $ref: "#/parameters/room_id"
- $ref: "#/parameters/id"
- name: file
in: body
description: Uploaded file data
required: true
schema:
$ref: '#/definitions/File'
tags:
- Upload file
responses:
'200':
description: File is succesfully uploaded
'400':
$ref: "#/responses/ValidationError"
'401':
$ref: "#/responses/AuthenticationError"
'403':
$ref: "#/responses/AuthorizationError"
'404':
$ref: "#/responses/NotFoundError"
'500':
$ref: "#/responses/UnexpectedError"
definitions:
File:
description: The file object
type: object
properties:
name:
description: Name of file
type: string
file:
description: File content
type: string