OPEN API sample JSON

This post is being referred from this previous post.
The explanation of the highlighted parts of is explained in the parent link.

{
    "swagger": "2.0",
    "info": {
        "description": "API to save signature as base64",
        "version": "1.0.0",
        "title": "UpdateSignaturetoAccount",
        "termsOfService": "https://<your domain for http trigger>.westus.logic.azure.com/terms-of-service",
        "contact": {
            "name": "Debajit Dutta",
            "url": "http://www.xrmforyou.com",
            "email": "debajit.dutta@xrmforyou.com"
        }
    },
    "host": "<your domain for http trigger>.westus.logic.azure.com:443",
    "basePath": "/workflows",
    "schemes": [
        "https"
    ],
    "consumes": [],
    "produces": [],
    "paths": {
        "/06781ec9396c44b0810abf56c7511c73/triggers/manual/paths/invoke": {
            "post": {
                "summary": "Save signature to Dynamics 365",
                "operationId": "SignatureToFlow",
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted"
                    }
                },
                "parameters": [
                    {
                        "name": "content-type",
                        "in": "header",
                        "description": "",
                        "type": "string",
                        "required": true
                    },
                    {
                        "name": "api-version",
                        "in": "query",
                        "type": "string",
                        "default": "2016-06-01",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "sp",
                        "in": "query",
                        "type": "string",
                        "default": "/triggers/manual/run",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "sv",
                        "in": "query",
                        "type": "string",
                        "default": "1.0",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "sig",
                        "in": "query",
                        "type": "string",
                        "default": "jmdbo2bnxDHQtc7AfPESsEBWA_QXBD_Cm4_-qK6zg_U",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "recordid",
                        "in": "query",
                        "type": "string",
                        "description": "",
                        "required": true
                    },
                    {
                        "name": "content",
                        "in": "body",
                        "schema": {
                            "type": "string",
                            "format":  "byte"
                        },
                        "description": "Signature to upload.",
                        "required": true
                    }
                ]
            }
        }
    },
    "definitions": {},
    "parameters": {},
    "responses": {},
    "securityDefinitions": {},
    "security": [],
    "tags": []
}

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading