HospitalManagementSystem.Presentation
1.0

Base URL
http://api.example.com

This is version 1.0 of this API documentation. Last update on Jan 10, 2024.

Authentication

Bearer (http_api_key)

Send an authentication token in the Authorization header to authenticate with the API.

GET /api/Patient/GetPatient

GET /api/Patient/GetPatient

Responses

GET /api/Patient/GetPatient
curl \
 -X GET http://api.example.com/api/Patient/GetPatient \
 -H "Authorization: $API_KEY"

GET /api/Patient/GetAllPatients

GET /api/Patient/GetAllPatients

Responses

GET /api/Patient/GetAllPatients
curl \
 -X GET http://api.example.com/api/Patient/GetAllPatients \
 -H "Authorization: $API_KEY"

GET /api/Patient/GetPatientByName

GET /api/Patient/GetPatientByName

Responses

GET /api/Patient/GetPatientByName
curl \
 -X GET http://api.example.com/api/Patient/GetPatientByName \
 -H "Authorization: $API_KEY"

GET /api/Patient/GenerateReport

GET /api/Patient/GenerateReport

Responses

GET /api/Patient/GenerateReport
curl \
 -X GET http://api.example.com/api/Patient/GenerateReport \
 -H "Authorization: $API_KEY"

GET /api/Patient/GeneratePdfReport

GET /api/Patient/GeneratePdfReport

Responses

GET /api/Patient/GeneratePdfReport
curl \
 -X GET http://api.example.com/api/Patient/GeneratePdfReport \
 -H "Authorization: $API_KEY"

POST /api/Patient/CreatePatient

POST /api/Patient/CreatePatient

Body

Responses

curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json-patch+json"
curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","address":"string","dateOfBirth":"2024-05-04","adminId":"string"}'
curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: text/json"
curl \
 -X POST http://api.example.com/api/Patient/CreatePatient \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/*+json"
Request examples
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2025-05-04",
  "adminId": "string"
}
Request examples
{
  "name": "string",
  "address": "string",
  "dateOfBirth": "2025-05-04",
  "adminId": "string"
}

POST /api/Patient/CreateProfilePicture

POST /api/Patient/CreateProfilePicture

Query parameters

multipart/form-data

Body

Responses

POST /api/Patient/CreateProfilePicture
curl \
 -X POST http://api.example.com/api/Patient/CreateProfilePicture \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: multipart/form-data" \
 -F "file=@file"