{% extends 'layouts/api-accordion-child' %}
{% set id     = "dbInfo"                 %}
{% set title  = "/api/dbInfo"            %}
{% set method = "GET"                    %}


{% block desc %}
Returns the stats of the database. When the user authenticates, more information is returned. This information includes:
<ul>
  <li> Amount of whitelist and blacklist records </li>
  <li> Some server settings like the database name </li>
  <li> Some database information like disk usage </li>
</ul>
Unauthenticated queries return only collection information.
{% endblock %}

{% block output %}
{
  "capec": {
    "last_update": {
      "$date": 1417734881000
    },
    "size": 463
  },
  "cpe": {
    "last_update": {
      "$date": 1485582988000
    },
    "size": 117276
  },
  "cpeOther": {
    "last_update": null,
    "size": 0
  },
  "cves": {
    "last_update": {
      "$date": 1485781223000
    },
    "size": 81284
  },
  "cwe": {
    "last_update": {
      "$date": 1406765683000
    },
    "size": 719
  },
  "via4": {
    "last_update": {
      "$date": 1485703986000
    },
    "size": 81143
  }
}
{% endblock %}
