Public
Documentation Settings

MediRepo

Logo

Logo

Elixir/Phoenix API for Daily Medical Reports

Making communication easier for Hospitals and Pacients Family

Most hospitals are restricting visitors for COVID-19 Patients. This is a personal project to help hospitals sharing Daily Medical Reports with those patients family.

Hospitals

Endpoints for hospitals

Auth

This folder contains endpoints related to authentication.

POSTSign-in

https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/signin

Returns a valid token for Hospitals.

Bodyraw (json)
json
{"email": "andrgab@gmail.com",
 "password": "123456"
}
Example Request
curl
curl --location 'https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/signin' \
--data-raw '{"email": "andrgab@gmail.com",
 "password": "123456"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTReset Password

https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/reset

Send a registered hospital's e-mail to receive a valid reset token by e-mail.

Bodyraw (json)
json
{ "email": "americas22@email.com"
}
Example Request
curl
curl --location 'https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/reset' \
--data-raw '{ "email": "americas22@email.com"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTLogin With Reset Token

https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/fastlogin

Use the received reset token and the hospital ID to gain a new access token.

Bodyraw (json)
json
{"id": "85e6af53-c5a4-4d46-b24c-df5afaf6574a",
 "reset_token": "UTFlVWxNc3NXTUR1SDUyQmYzc25oZz09"
}
Example Request
curl
curl --location 'https://elderly-joyous-pangolin.gigalixirapp.com/api/hospitals/fastlogin' \
--data '{"id": "85e6af53-c5a4-4d46-b24c-df5afaf6574a",
 "reset_token": "UTFlVWxNc3NXTUR1SDUyQmYzc25oZz09"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers