Helper module for standardizing JSON responses in the web server
Class methods
send_container_response(env, container_id :
String, success :
Bool, message :
String |
Nil = nil)
Send a container update response
Sourcesend_error(env, message :
String, status_code :
Int32 = 500, details = nil)
Send an error JSON response
SourceSend a JSON response with a job ID
SourceSend a paginated response
Sourcesend_success(env, data = nil)
Send a successful JSON response
Source