POST api/Staff/Comments?staffId={staffId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
staffId

integer

Required

Body Parameters

StaffCommentViewModel
NameDescriptionTypeAdditional information
id

integer

None.

StaffId

integer

None.

Comment

string

None.

Date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "StaffId": 2,
  "Comment": "sample string 3",
  "Date": "2020-08-04T11:01:48.8081587-04:00"
}

application/xml, text/xml

Sample:
<StaffCommentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.StaffDetails">
  <Comment>sample string 3</Comment>
  <Date>2020-08-04T11:01:48.8081587-04:00</Date>
  <StaffId>2</StaffId>
  <id>1</id>
</StaffCommentViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.