POST api/v{version}/Notices/CreateNotice

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

CreateNotice
NameDescriptionTypeAdditional information
Title

string

None.

CourseId

string

None.

Content

string

None.

Poster

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "CourseId": "sample string 2",
  "Content": "sample string 3",
  "Poster": "sample string 4"
}

application/xml, text/xml

Sample:
<CreateNotice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudbudAPI.V2.Models">
  <Content>sample string 3</Content>
  <CourseId>sample string 2</CourseId>
  <Poster>sample string 4</Poster>
  <Title>sample string 1</Title>
</CreateNotice>

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

Response Information

Resource Description

NoticesModel
NameDescriptionTypeAdditional information
TeacherId

string

None.

Date

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TeacherId": "sample string 1",
  "Date": "sample string 2"
}

application/xml, text/xml

Sample:
<NoticesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudbudAPI.V2.Models">
  <Date>sample string 2</Date>
  <TeacherId>sample string 1</TeacherId>
</NoticesModel>