Skip to content

wendryosales/vulnerability-manager-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulnerability Manager API

API for vulnerability management

Running Locally

Clone the repo

  git clone [email protected]:wendryosales/vulnerability-manager-api.git

Change the working directory

  cd vulnerability-manager-api

Make sure you install the dependencies with your virtualenv active

If not active:

  python3 -m venv .venv
  source .venv/bin/active

It may be different from your operating system


Install the requirements

  python3 -m pip install -r requirements.txt

Django Rest Framework Init

Step by step

  python manage.py makemigrations
  python manage.py makemigrations api
  python manage.py migrate

You can register with any user

  python manage.py createsuperuser

Write the superuser username, email and password

Last Step:

  python manage.py runserver

Now you can access routes on your local server either via browser or through request tools.

API Documentation

Start here

before any request create a token for your user in the admin panel

  GET /swagger

or

  GET /redoc

Upload CSV

It is possible to send data through a csv file

  POST /api/upload

Login 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

Authors

About

API for vulnerability management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages