POST api/AllowAnonymousAPI/ConnectRedis

20200427 HRight 2.0 测试redis

Request Information

URI Parameters

None.

Body Parameters

AnonymousEmpInput
NameDescriptionTypeAdditional information
employeeGID

globally unique identifier

None.

leavedefineGID

globally unique identifier

None.

startdate

date

None.

enddate

date

None.

flowInstanceGID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "employeeGID": "b48dae85-4904-4c2a-8b34-582b8d8bff43",
  "leavedefineGID": "1d8a5863-0f7d-459f-ac86-751a9b10e8e2",
  "startdate": "2025-05-04T15:20:55.3973233+08:00",
  "enddate": "2025-05-04T15:20:55.3973233+08:00",
  "flowInstanceGID": "68f7573a-94de-493b-a4b2-d08ee3bbdd44"
}

application/xml, text/xml

Sample:
<AnonymousEmpInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.OpenAPI.Model">
  <employeeGID>b48dae85-4904-4c2a-8b34-582b8d8bff43</employeeGID>
  <enddate>2025-05-04T15:20:55.3973233+08:00</enddate>
  <flowInstanceGID>68f7573a-94de-493b-a4b2-d08ee3bbdd44</flowInstanceGID>
  <leavedefineGID>1d8a5863-0f7d-459f-ac86-751a9b10e8e2</leavedefineGID>
  <startdate>2025-05-04T15:20:55.3973233+08:00</startdate>
</AnonymousEmpInput>

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

Response Information

Resource Description

20200427 HRight 2.0 测试redis

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>