POST api/Visits/FixSummery

Request Information

URI Parameters

None.

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": "2024-11-21T11:28:16.5660962+02: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>2024-11-21T11:28:16.5660962+02: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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VisitSummaryMongo'.

application/bson

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

Response Information

Resource Description

RetSummaryVisit
NameDescriptionTypeAdditional information
summary

Collection of Object

None.

summaryMongo

VisitSummaryMongo

None.

prevSums

Collection of PreviousVisitSummary

None.

Response Formats

application/json, text/json

Sample:
{
  "summary": [
    {},
    {}
  ],
  "summaryMongo": {
    "visitCode": 1,
    "custNum": 2,
    "printered": true,
    "summaryTitle": "sample string 4",
    "templateName": "sample string 5",
    "creationDate": "2024-11-21T11:28:16.5816994+02: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"
  },
  "prevSums": [
    {
      "EmpName": "sample string 1",
      "visitCode": 2,
      "summaryTitle": "sample string 3",
      "creationDate": "2024-11-21T11:28:16.5816994+02: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
        }
      ],
      "operName": "sample string 4",
      "templateName": "sample string 5",
      "_id": "000000000000000000000000"
    },
    {
      "EmpName": "sample string 1",
      "visitCode": 2,
      "summaryTitle": "sample string 3",
      "creationDate": "2024-11-21T11:28:16.5816994+02: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
        }
      ],
      "operName": "sample string 4",
      "templateName": "sample string 5",
      "_id": "000000000000000000000000"
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' with data contract name 'ArrayOfanyType:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' with data contract name 'ArrayOfanyType:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

application/bson

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