POST api/NewsAnnouncement

Request Information

URI Parameters

None.

Body Parameters

NewsAnnouncement
NameDescriptionTypeAdditional information
Id

integer

None.

RegionID

integer

None.

ChapterID

integer

None.

CountryID

integer

None.

Members

integer

None.

Image

string

None.

Title

string

None.

BriefDesc

string

None.

Date

date

None.

Post

byte

None.

Size

string

None.

Path

string

None.

Filename

string

None.

CreatedBy

integer

None.

CreateadDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

User

User

None.

User1

User

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 'PNA.Models.AccessRight'. Path 'User.AccessRights[0].Module.AccessRights'.

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 'PNA.Models.AccessRight'. Path 'User.AccessRights[0].Module.AccessRights'.

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 'System.Collections.Generic.List`1[[PNA.Models.AVP, PNA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'System.Collections.Generic.List`1[[PNA.Models.AVP, PNA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'NewsAnnouncement'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>