GET api/Newsletter

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of NewsModel
NameTypeAdditional informationDescription
Id integer

None.

Name string

None.

Date date

None.

Important boolean

None.

isReaded boolean

None.

Footer string

None.

Header string

None.

MailFooter string

None.

MailHeader string

None.

Titles Collection of NewsTopicModel

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 for property 'News' with type 'EnergyProject.WebAPI.Models.NewsModel'. Path '[0].Titles[0]'.

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 for property 'News' with type 'EnergyProject.WebAPI.Models.NewsModel'. Path '[0].Titles[0]'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Self referencing loop detected for property 'News' with type 'EnergyProject.WebAPI.Models.NewsModel'. Path '[0].Titles[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'EnergyProject.WebAPI.Models.NewsTopicModel' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'EnergyProject.WebAPI.Models.NewsTopicModel' contains cycles and cannot be serialized if reference tracking is disabled.