{% extends 'bootstrap/base.html' %} {% import 'bootstrap/fixes.html' as fixes %} {% block title %}d3cryp7.py{% endblock %} {% block head %} {{super()}} {{fixes.ie8()}} {% endblock %} {% block content %}
$ curl http://{{ host }}:{{ port }}/api/statistics
import requests
requests.get('http://{{ host }}:{{ port }}/api/statistics').json()
The result of these examples is as follows:
Returns the version of the application
{
"version": "0.1.0"
}
http://{{ host }}:{{ port }}/api/version
Returns statistics about the application and the Python interpreter
{
"python": {
"platform": "linux",
"version": "3.5.2"
},
"d3cryp7": {
"status_code": 0,
"version": "0.1.0",
"status": "RUNNING"
},
"time": {
"running": 289,
"start": 1475188829,
"current": 1475189118
}
}
http://{{ host }}:{{ port }}/api/statistics