POST api/business/addstaff

Request Information

URI Parameters

None.

Body Parameters

StaffViewModel
NameDescriptionTypeAdditional information
StaffName

string

Required

BusinessID

integer

Required

StaffID

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "StaffName": "sample string 1",
  "BusinessID": 2,
  "StaffID": 3
}

text/html

Sample:
{"StaffName":"sample string 1","BusinessID":2,"StaffID":3}

application/xml, text/xml

Sample:
<StaffViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BookRYT.Models.ApiViewModel.Business">
  <BusinessID>2</BusinessID>
  <StaffID>3</StaffID>
  <StaffName>sample string 1</StaffName>
</StaffViewModel>

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

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.