curl -X POST https://api.mediguide.com/api/medical-info/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userId": 123,
"glucose": 95,
"oxygenBlood": 98,
"bloodPressureSystolic": 120,
"bloodPressureDiastolic": 80,
"temperature": 36.6,
"age": 35,
"height": 175,
"weight": 70,
"respiratoryRate": 16,
"bloodType": "O+",
"heartRate": 72
}'
{
"message": "Registro médico guardado",
"id": 456
}
Create and save a new medical record for a user
curl -X POST https://api.mediguide.com/api/medical-info/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userId": 123,
"glucose": 95,
"oxygenBlood": 98,
"bloodPressureSystolic": 120,
"bloodPressureDiastolic": 80,
"temperature": 36.6,
"age": 35,
"height": 175,
"weight": 70,
"respiratoryRate": 16,
"bloodType": "O+",
"heartRate": 72
}'
{
"message": "Registro médico guardado",
"id": 456
}
A+, A-, B+, B-, AB+, AB-, O+, O-.curl -X POST https://api.mediguide.com/api/medical-info/ \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userId": 123,
"glucose": 95,
"oxygenBlood": 98,
"bloodPressureSystolic": 120,
"bloodPressureDiastolic": 80,
"temperature": 36.6,
"age": 35,
"height": 175,
"weight": 70,
"respiratoryRate": 16,
"bloodType": "O+",
"heartRate": 72
}'
{
"message": "Registro médico guardado",
"id": 456
}
A+, A-, B+, B-, AB+, AB-, O+, O-userId. Attempting to save records for a different user will result in a 403 Forbidden error.