POST api/patient/register

Request Information

URI Parameters

None.

Not Require Authorization!

Body Parameters

PatientRegisterViewModel
NameDescriptionTypeAdditional information
Email

string

Matching regular expression pattern: ^\s*[\w\-\+_]+(\.[\w\-\+_]+)*\@[\w\-\+_]+\.[\w\-\+_]+(\.[\w\-\+_]+)*\s*$

FullName

string

Required

CityID

integer

None.

DetailedAddress

string

None.

MobileNumber

string

Required

GenderID

integer

Matching regular expression pattern: 1|2

BirthDate

date

None.

Password

string

Required

Data type: Password

Matching regular expression pattern: ^.{6,}$

RegisterVia

string

Required

Matching regular expression pattern: mobile|web

DeviceID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "FullName": "sample string 2",
  "CityID": 1,
  "DetailedAddress": "sample string 3",
  "MobileNumber": "sample string 4",
  "GenderID": 1,
  "BirthDate": "2019-10-22T23:26:44.353574-04:00",
  "Password": "sample string 5",
  "RegisterVia": "sample string 6",
  "DeviceID": "sample string 7"
}

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
Status

integer

None.

Response

Object

None.

Errors

Object

None.

Authorized

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Response": {},
  "Errors": {},
  "Authorized": true
}