POST api/jobandnotice/RegisterAnExternalEmployer

Request Information

URI Parameters

None.

Body Parameters

ExternalEmployerInputDTO
NameDescriptionTypeAdditional information
Name

string

None.

ContactNumber

string

None.

ContactEmail

string

None.

Address

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ContactNumber": "sample string 2",
  "ContactEmail": "sample string 3",
  "Address": "sample string 4"
}

application/xml, text/xml

Sample:
<ExternalEmployerInputDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.ViewModels">
  <Address>sample string 4</Address>
  <ContactEmail>sample string 3</ContactEmail>
  <ContactNumber>sample string 2</ContactNumber>
  <Name>sample string 1</Name>
</ExternalEmployerInputDTO>

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

Response Information

Resource Description

ExternalEmployer
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

Name

string

Required

ContactNumber

string

Required

String length: inclusive between 0 and 20

ContactEmail

string

String length: inclusive between 0 and 100

Address

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": "d06d68df-5acd-46c0-be2f-178a14b57c6d",
  "Name": "sample string 2",
  "ContactNumber": "sample string 3",
  "ContactEmail": "sample string 4",
  "Address": "sample string 5"
}

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 'API.Models.ExternalEmployerJobVoucher' 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 'API.Models.ExternalEmployerJobVoucher' contains cycles and cannot be serialized if reference tracking is disabled.