如何解决功率自动操作未在流动中显示身体元素
我有一个Web API方法,该方法返回PDF文件以及内容类型为application/pdf
。但是,我无法让Power Automate将响应主体公开为动态内容元素。
我确定这与我在swagger文档中描述我的方法的方式有关(请参见下文)。
我该如何写招摇鼓地告诉Power Automate使用响应主体,以便可以将其呈现给(例如)“创建文件(共享点)”操作?我已经将200模式设置为{type: file; format: binary}
,但是我也尝试过自己使用{type: file}
。
swagger: '2.0'
info: {title: xxxxx,version: '1.0',description: xxxxx}
host: xxxxx.azurewebsites.net
basePath: /api
schemes: [https]
consumes: []
produces: []
paths:
/FrontPageGenerator:
post:
description: Output a PDF
operationId: FrontPageGenerator
summary: FrontPageGenerator
parameters:
- in: body
name: FrontPageGeneratorRequestBody
description: Request payload - a json object of FrontPageGenerator data
required: true
schema: {$ref: '#/definitions/GenericJson'}
consumes: [application/json]
produces: [application/json,application/pdf]
responses:
'200':
description: Successfully generated PDF
schema: {type: file; format: binary}
headers:
'Content-Type:': {description: 'Content-Type:',type: string}
'Accept:': {description: 'Accept:',type: string}
definitions:
GenericJson: {type: object}
parameters: {}
responses: {}
securityDefinitions: {}
tags: []
谢谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。