GET api/Module/GetModelById/{id}

获取单条XX信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

获取单条XX信息

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.

Response 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]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。