POST api/Report/SubstanceMisuse
Request Information
URI Parameters
None.
Body Parameters
SubstanceMisuseReportViewModelName | Description | Type | Additional information |
---|---|---|---|
NRICNationalityID | string |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
StateID | string |
None. |
|
StartDate | string |
None. |
|
EndDate | string |
None. |
|
WorkerStatusIds | Collection of globally unique identifier |
None. |
|
DrugNames | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "NRICNationalityID": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "StateID": "sample string 4", "StartDate": "sample string 5", "EndDate": "sample string 6", "WorkerStatusIds": [ "c0de7f6c-6399-443c-93ff-a5f2492e122d", "9fdcb1cb-56fe-4fe9-bbc0-9e4ce0593537" ], "DrugNames": [ "61e2a227-3ccd-4894-aaae-ef0119fa9a84", "7db3bbb3-2a69-4529-81b9-af6014ba5513" ] }
application/xml, text/xml
Sample:
<SubstanceMisuseReportViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Report.ViewModels"> <DrugNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>61e2a227-3ccd-4894-aaae-ef0119fa9a84</d2p1:guid> <d2p1:guid>7db3bbb3-2a69-4529-81b9-af6014ba5513</d2p1:guid> </DrugNames> <EndDate>sample string 6</EndDate> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <NRICNationalityID>sample string 1</NRICNationalityID> <StartDate>sample string 5</StartDate> <StateID>sample string 4</StateID> <WorkerStatusIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>c0de7f6c-6399-443c-93ff-a5f2492e122d</d2p1:guid> <d2p1:guid>9fdcb1cb-56fe-4fe9-bbc0-9e4ce0593537</d2p1:guid> </WorkerStatusIds> </SubstanceMisuseReportViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NRICNationalityID" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="FirstName" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LastName" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="StateID" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="StartDate" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="EndDate" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerStatusIds[0]" c0de7f6c-6399-443c-93ff-a5f2492e122d --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerStatusIds[1]" 9fdcb1cb-56fe-4fe9-bbc0-9e4ce0593537 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DrugNames[0]" 61e2a227-3ccd-4894-aaae-ef0119fa9a84 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DrugNames[1]" 7db3bbb3-2a69-4529-81b9-af6014ba5513 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.