POST api/ExamsAndPrescriptions

Request Information

URI Parameters

None.

Body Parameters

ExamPrescriptionsCreateDto
NameDescriptionTypeAdditional information
PatientId

integer

Required

DoctorId

integer

Required

ExamTypeId

integer

Required

DatePerformed

date

None.

DateExpires

date

None.

ApplicationId

integer

None.

Prescription

Collection of PrescriptionDetails

Required

Request Formats

application/json, text/json

Sample:
{
  "PatientId": 1,
  "DoctorId": 1,
  "ExamTypeId": 2,
  "DatePerformed": "2026-04-29T22:07:50.3871519+00:00",
  "DateExpires": "2026-04-29T22:07:50.3871519+00:00",
  "ApplicationId": 1,
  "Prescription": [
    {
      "OculusId": 1,
      "ProductId": 2,
      "ConfigurationId": 1
    },
    {
      "OculusId": 1,
      "ProductId": 2,
      "ConfigurationId": 1
    }
  ]
}

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

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Message

string

None.

Result

Object

None.

StatusCode

integer

None.

StatusGroup

string

None.

Details

Collection of Object

None.

Response Formats

application/json, text/json

Sample:

Sample not available.