POST api/Module/EditModuleSubmit

编辑XX信息

Request Information

URI Parameters

None.

Body Parameters

ModuleDTO
NameDescriptionTypeAdditional information
path

路由路径 必须项

string

None.

name

路由名称 必须项,后面缓存页面需要用到,且这个name是唯一的

string

None.

metaInfo

string

None.

component

string

None.

_component

string

None.

ParentModuleId

父路由模块Id

integer

None.

ParentModuleName

父路由模块名称

string

None.

meta

路由元信息的可配置参数

MetaDTO

None.

children

Collection of ModuleDTO

None.

queries

Collection of ParamDTO

None.

routerParams

Collection of ParamDTO

None.

query

Object

None.

params

Object

None.

Id

编号

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'DTO.ModuleDTO'. Path 'children'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'DTO.ModuleDTO'. Path 'children'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “System.Collections.Generic.List`1[[DTO.ModuleDTO, DTO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “System.Collections.Generic.List`1[[DTO.ModuleDTO, DTO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

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 'ModuleDTO'.

Response Information

Resource Description

编辑XX信息

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>