POST api/Visits/SaveVisitSummery?mongoId={mongoId}&printed={printed}&pSignEmplCode={pSignEmplCode}&pEmplPass={pEmplPass}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
mongoId

string

Required

printed

boolean

Required

pSignEmplCode

integer

Required

pEmplPass

string

Required

Body Parameters

VisitSummaryMongo
NameDescriptionTypeAdditional information
_id

ObjectId

None.

visitCode

integer

None.

custNum

integer

None.

printered

boolean

None.

summaryTitle

string

None.

templateName

string

None.

creationDate

date

None.

summary

Collection of SummaryField

None.

Request Formats

application/json, text/json

Sample:
{
  "visitCode": 1,
  "custNum": 2,
  "printered": true,
  "summaryTitle": "sample string 4",
  "templateName": "sample string 5",
  "creationDate": "2019-10-15T02:44:28.1225087+03:00",
  "summary": [
    {
      "title": "sample string 1",
      "value": "sample string 2",
      "type": "sample string 3",
      "name": "sample string 4",
      "rows": 5,
      "cols": 6
    },
    {
      "title": "sample string 1",
      "value": "sample string 2",
      "type": "sample string 3",
      "name": "sample string 4",
      "rows": 5,
      "cols": 6
    }
  ],
  "_id": "000000000000000000000000"
}

application/xml, text/xml

Sample:
<VisitSummaryMongo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.Visits">
  <_id xmlns:d2p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
    <d2p1:_a>0</d2p1:_a>
    <d2p1:_b>0</d2p1:_b>
    <d2p1:_c>0</d2p1:_c>
  </_id>
  <creationDate>2019-10-15T02:44:28.1225087+03:00</creationDate>
  <custNum>2</custNum>
  <printered>true</printered>
  <summary>
    <SummaryField>
      <cols>6</cols>
      <name>sample string 4</name>
      <rows>5</rows>
      <title>sample string 1</title>
      <type>sample string 3</type>
      <value>sample string 2</value>
    </SummaryField>
    <SummaryField>
      <cols>6</cols>
      <name>sample string 4</name>
      <rows>5</rows>
      <title>sample string 1</title>
      <type>sample string 3</type>
      <value>sample string 2</value>
    </SummaryField>
  </summary>
  <summaryTitle>sample string 4</summaryTitle>
  <templateName>sample string 5</templateName>
  <visitCode>1</visitCode>
</VisitSummaryMongo>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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

application/bson

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