POST api/Service/SaveService

Request Information

URI Parameters

None.

Body Parameters

ServiceRecordDetails
NameDescriptionTypeAdditional information
serviceRecord

ServiceRecord

None.

lines

Collection of ServiceLineDetails

None.

custContacts

Collection of CustContact

None.

payerContact

InsurersContact

None.

turnContact

InsurersContact

None.

status

StatusForService

None.

inspector

string

None.

inspector_code

integer

None.

creator

string

None.

referent

string

None.

referent_code

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'CustDemog.Clinic'. Path 'serviceRecord.InsurerDepartment.ServiceType[0].ServiceRecordLine[0].EmpForService[0].Occupations.Occupation_of_employees[0].Employees.Clinics.Insurers.Clinics'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'CustDemog.Clinic'. Path 'serviceRecord.InsurerDepartment.ServiceType[0].ServiceRecordLine[0].EmpForService[0].Occupations.Occupation_of_employees[0].Employees.Clinics.Insurers.Clinics'.

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

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

ServiceRecordDetails
NameDescriptionTypeAdditional information
serviceRecord

ServiceRecord

None.

lines

Collection of ServiceLineDetails

None.

custContacts

Collection of CustContact

None.

payerContact

InsurersContact

None.

turnContact

InsurersContact

None.

status

StatusForService

None.

inspector

string

None.

inspector_code

integer

None.

creator

string

None.

referent

string

None.

referent_code

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'CustDemog.Clinic'. Path 'serviceRecord.InsurerDepartment.ServiceType[0].ServiceRecordLine[0].EmpForService[0].Occupations.Occupation_of_employees[0].Employees.Clinics.Insurers.Clinics'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'CustDemog.Clinic'. Path 'serviceRecord.InsurerDepartment.ServiceType[0].ServiceRecordLine[0].EmpForService[0].Occupations.Occupation_of_employees[0].Employees.Clinics.Insurers.Clinics'.

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.