POST api/Share/AddNewTemplate

增加分享新模板

Request Information

URI Parameters

None.

Body Parameters

模板

ShareTemplateDto
NameDescriptionTypeAdditional information
Id

模板ID

string

None.

Title

模板标题

string

None.

Summary

模板摘要

string

None.

ImagePath

分享图片路径

string

None.

Module

模块

ModuleType

None.

Key

数据库主键

integer

None.

PageName

页面名称

string

None.

DefaultPic

默认分享图片

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<ShareTemplateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Share">
  <DefaultPic>sample string 7</DefaultPic>
  <Id>sample string 1</Id>
  <ImagePath>sample string 4</ImagePath>
  <Key>5</Key>
  <Module>None</Module>
  <PageName>sample string 6</PageName>
  <Summary>sample string 3</Summary>
  <Title>sample string 2</Title>
</ShareTemplateDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ShareTemplateDto'.

Response Information

Resource Description

增加分享新模板

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />