POST api/Announcement/add

Request Information

URI Parameters

None.

Body Parameters

AnnouncementViewModel
NameDescriptionTypeAdditional information
ID

integer

None.

Title

string

None.

Content

string

None.

CreatedDate

date

None.

UserId

string

None.

AppUser

AppUserViewModel

None.

Status

boolean

None.

AnnouncementUsers

Collection of AnnouncementUserViewModel

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 for property 'Announcement' with type 'LcdCNTT.Web.Models.Common.AnnouncementViewModel'. Path 'AnnouncementUsers[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 'Announcement' with type 'LcdCNTT.Web.Models.Common.AnnouncementViewModel'. Path 'AnnouncementUsers[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 'LcdCNTT.Web.Models.Common.AnnouncementUserViewModel' 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 'LcdCNTT.Web.Models.Common.AnnouncementUserViewModel' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.