Hospital information and News information REST endpoint
Login admin account and get token
- parameters
email
- email of admin accountpassword
- password of admin account
- returns
code
- 200 - if successfully authenticated
- 403 - if invalid email or password
token
- access token to be used for futher requests
- return only if
code
is 200
error
- error message for authentication
- return if
code
is not 403
Register admin account and get token
- parameters
email
- email of admin accountpassword
- password of admin accountkey
- secret key for registration
- returns
code
- 201 - if admin is successfully created
- 422 - if email is already registered
token
- access token to be used for futher requests
- return only if
code
is 201
error
- error message for authentication
- return if
code
is not 201
Get all available collections from mongodb
except admin
collection
- parameters
token
- admin access token exchanged by logging in or registering
- returns
code
- 200 if no error
- 403 if invalid
token
data
- array of collection name
- return only if
code
is 200
error
- error message for operations
- return if
code
is not 200
Upload files (*.csv) for data preparation
- parameters
token
- access token exchanged by logging in or registeringfile-to-upload
file data stream to be uploaded (multipart-formdata
)
- returns
code
- 201 if no error
- 403 if invalid
token
status
- return success if
code
is 201
- return success if
Prepare uploaded data
- parameters
token
- access token exchanged by logging in or registering
- returns
code
- 201 if no error
- 403 if invalid
token
status
- return success if
code
is 201
- return success if
message
- additional message for operation
- optionally returned
Load prepared data
- parameters
token
- access token exchanged by logging in or registering
- returns
code
- 201 if no error
- 403 if invalid
token
status
- return success if
code
is 201
- return success if
message
- additional message for operation
- optionally returned
Create model files for future routes
- parameters
token
- access token exchanged by logging in or registering
- returns
code
- 201 if no error
- 403 if invalid
token
status
- return success if
code
is 201
- return success if
message
- additional message for operation
- optionally returned
Load created models into application
- parameters
token
- access token exchanged by logging in or registering
- returns
code
- 201 if no error
- 403 if invalid
token
status
- return success if
code
is 201
- return success if
message
- additional message for operation
- optionally returned
Create routes files for uploaded data API REST endpoint
- parameters
token
- access token exchanged by logging in or registering
- returns
code
- 201 if no error
- 403 if invalid
token
status
- return success if
code
is 201
- return success if
message
- additional message for operation
- optionally returned
Load create routes for REST endpoints
- parameters
token
- access token exchanged by logging in or registering
- returns
code
- 201 if no error
- 403 if invalid
token
status
- return success if
code
is 201
- return success if
message
- additional message for operation
- optionally returned