POST api/Values/MAddTimeINAttendance

Request Information

URI Parameters

None.

Body Parameters

AttendanceRecordsDomain
NameDescriptionTypeAdditional information
ID

integer

None.

UserID

integer

None.

InDate

date

None.

InLatitude

decimal number

None.

InLongitude

decimal number

None.

InLocation

SqlGeography

None.

InShopID

integer

None.

IsSynchronizeIn

boolean

None.

OutDate

date

None.

OutLatitude

decimal number

None.

OutLongitude

decimal number

None.

OutLocation

SqlGeography

None.

OutShopID

integer

None.

IsSynchronizeOut

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "UserID": 2,
  "InDate": "2024-05-13T09:11:57.2279266+05:00",
  "InLatitude": 4.0,
  "InLongitude": 5.0,
  "InLocation": null,
  "InShopID": 6,
  "IsSynchronizeIn": true,
  "OutDate": "2024-05-13T09:11:57.2591876+05:00",
  "OutLatitude": 9.0,
  "OutLongitude": 10.0,
  "OutLocation": {
    "_geometry": {
      "m_points": null,
      "m_zValues": null,
      "m_mValues": null,
      "m_figures": null,
      "m_shapes": [
        {
          "figureOffset": -1,
          "parentOffset": -1,
          "type": 7
        }
      ],
      "m_segments": null,
      "m_fValid": true,
      "m_isLargerThanAHemisphere": false,
      "m_isKatmaiCompatible": true
    },
    "_isNull": false,
    "_srid": 4326
  },
  "OutShopID": 11,
  "IsSynchronizeOut": true
}

application/xml, text/xml

Sample:
<AttendanceRecordsDomain xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPITest.Models">
  <ID>1</ID>
  <InDate>2024-05-13T09:11:57.2279266+05:00</InDate>
  <InLatitude>4</InLatitude>
  <InLocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Types" i:nil="true" />
  <InLongitude>5</InLongitude>
  <InShopID>6</InShopID>
  <IsSynchronizeIn>true</IsSynchronizeIn>
  <IsSynchronizeOut>true</IsSynchronizeOut>
  <OutDate>2024-05-13T09:11:57.2591876+05:00</OutDate>
  <OutLatitude>9</OutLatitude>
  <OutLocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Types">
    <d2p1:_geometry>
      <d2p1:m_fValid>true</d2p1:m_fValid>
      <d2p1:m_figures i:nil="true" />
      <d2p1:m_isKatmaiCompatible>true</d2p1:m_isKatmaiCompatible>
      <d2p1:m_isLargerThanAHemisphere>false</d2p1:m_isLargerThanAHemisphere>
      <d2p1:m_mValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <d2p1:m_points i:nil="true" />
      <d2p1:m_segments i:nil="true" />
      <d2p1:m_shapes>
        <d2p1:Shape>
          <d2p1:figureOffset>-1</d2p1:figureOffset>
          <d2p1:parentOffset>-1</d2p1:parentOffset>
          <d2p1:type>GeometryCollection</d2p1:type>
        </d2p1:Shape>
      </d2p1:m_shapes>
      <d2p1:m_zValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    </d2p1:_geometry>
    <d2p1:_isNull>false</d2p1:_isNull>
    <d2p1:_srid>4326</d2p1:_srid>
  </OutLocation>
  <OutLongitude>10</OutLongitude>
  <OutShopID>11</OutShopID>
  <UserID>2</UserID>
</AttendanceRecordsDomain>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.