forked from RedHatProductSecurity/osidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
57 lines (52 loc) · 1.37 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
Exploits URLs
"""
import logging
from django.urls import path
from .api import (
EPSSRelevant,
ExploitsCollect,
ExploitsCVEMap,
ExploitsFlawData,
ExploitsReportData,
ExploitsReportDate,
ExploitsReportExplanations,
ExploitsReportPending,
ExploitsStatus,
SupportedProducts,
)
from .constants import EXPLOITS_API_VERSION
logger = logging.getLogger(__name__)
urlpatterns = [
path(f"api/{EXPLOITS_API_VERSION}/status", ExploitsStatus.as_view()),
path(f"api/{EXPLOITS_API_VERSION}/collect", ExploitsCollect.as_view()),
path(
f"api/{EXPLOITS_API_VERSION}/cve_map",
ExploitsCVEMap.as_view(),
),
path(
f"api/{EXPLOITS_API_VERSION}/report/date/<date>",
ExploitsReportDate.as_view(),
),
path(
f"api/{EXPLOITS_API_VERSION}/report/pending",
ExploitsReportPending.as_view(),
),
path(
f"api/{EXPLOITS_API_VERSION}/report/explanations",
ExploitsReportExplanations.as_view(),
),
path(
f"api/{EXPLOITS_API_VERSION}/report_data",
ExploitsReportData.as_view(),
),
path(
f"api/{EXPLOITS_API_VERSION}/flaw_data",
ExploitsFlawData.as_view(),
),
path(
f"api/{EXPLOITS_API_VERSION}/epss",
EPSSRelevant.as_view(),
),
path(f"api/{EXPLOITS_API_VERSION}/supported-products", SupportedProducts.as_view()),
]