API for vulnerability management
git clone git@github.com:wendryosales/vulnerability-manager-api.git cd vulnerability-manager-apiMake sure you install the dependencies with your virtualenv active
python3 -m venv .venv source .venv/bin/activeIt may be different from your operating system
python3 -m pip install -r requirements.txtStep by step
python manage.py makemigrations python manage.py makemigrations api python manage.py migrate python manage.py createsuperuserWrite the superuser username, email and password
Last Step:
python manage.py runserverNow you can access routes on your local server either via browser or through request tools.
before any request create a token for your user in the admin panel
GET /swaggeror
GET /redocIt is possible to send data through a csv file
POST /api/uploadLogin with the previously created user
.CSV for upload:
| ASSET - HOSTNAME | ASSET - IP_ADDRESS | VULNERABILITY - TITLE | VULNERABILITY - SEVERITY | VULNERABILITY - CVSS | VULNERABILITY - PUBLICATION_DATE |
|---|---|---|---|---|---|
| CharField | CharField | CharField | CharField - MAX 20 - NULL | FloatField - NULL | DateField - NULL |
You can access admin panel to add data manually
GET /admin