POST api/FP/enroll-staff

Request Information

URI Parameters

None.

Body Parameters

StaffEnrollDTO
NameDescriptionTypeAdditional information
StaffNo

string

None.

ByteString

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StaffNo": "sample string 1",
  "ByteString": "sample string 2"
}

application/xml, text/xml

Sample:
<StaffEnrollDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PDAAPI.Controllers">
  <ByteString>sample string 2</ByteString>
  <StaffNo>sample string 1</StaffNo>
</StaffEnrollDTO>

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

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
status

boolean

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <data />
  <message>sample string 2</message>
  <status>true</status>
</ApiResponse>