POST api/XTRF/Case/publicCaseById?id={id}&fromModule={fromModule}&ip={ip}

根据 案件 id 发布该案件

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

fromModule

string

Required

ip

string

Required

Body Parameters

Collection of XTRF_Project_CaseModule
NameDescriptionTypeAdditional information
id

integer

None.

CaseId

integer

None.

WorkFlowStepId

integer

None.

StepOrder

integer

None.

StepDepa

integer

None.

WorkFlowModuleId

integer

None.

WorkFlowServiceId

integer

None.

AssignTime

date

None.

AssignorId

integer

None.

state

integer

None.

ModuleNote

string

None.

Request Formats

application/json, text/json

Sample:
[
  null,
  {
    "id": 1,
    "CaseId": 2,
    "WorkFlowStepId": 3,
    "StepOrder": 4,
    "StepDepa": 5,
    "WorkFlowModuleId": 6,
    "WorkFlowServiceId": 7,
    "AssignTime": null,
    "AssignorId": null,
    "state": null,
    "ModuleNote": null
  }
]

application/xml, text/xml

Sample:
<ArrayOfXTRF_Project_CaseModule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Base.Models">
  <XTRF_Project_CaseModule i:nil="true" />
  <XTRF_Project_CaseModule>
    <AssignTime i:nil="true" />
    <AssignorId i:nil="true" />
    <CaseId>2</CaseId>
    <ModuleNote i:nil="true" />
    <StepDepa>5</StepDepa>
    <StepOrder>4</StepOrder>
    <WorkFlowModuleId>6</WorkFlowModuleId>
    <WorkFlowServiceId>7</WorkFlowServiceId>
    <WorkFlowStepId>3</WorkFlowStepId>
    <id>1</id>
    <state i:nil="true" />
  </XTRF_Project_CaseModule>
</ArrayOfXTRF_Project_CaseModule>

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 'List`1'.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].CaseId"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].WorkFlowStepId"

3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].StepOrder"

4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].StepDepa"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].WorkFlowModuleId"

6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].WorkFlowServiceId"

7
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

resultSuccess
NameDescriptionTypeAdditional information
code

0 =SUCCESS,1=ERROR,401TIMEOUT

integer

None.

result

Object

None.

message

string

None.

type

string

None.

page

string

None.

pageSize

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "result": {},
  "message": "sample string 3",
  "type": "sample string 4",
  "page": "sample string 5",
  "pageSize": "sample string 6"
}

application/xml, text/xml

Sample:
<resultSuccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Base.Entities">
  <code>1</code>
  <message>sample string 3</message>
  <page>sample string 5</page>
  <pageSize>sample string 6</pageSize>
  <result />
  <type>sample string 4</type>
</resultSuccess>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="code"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="result"

System.Object
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="message"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="type"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="page"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="pageSize"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e--