# Path: kraut_intel/views.py
# def home(request):
# def packages(request):
# def add_item_to_package(request, package_id, item_id, item_name):
# def delete_package(request, package_id="1"):
# def edit_create_package(request, package_id=None):
# def delete_comment_package(request, package_id="1", comment_id="1"):
# def comment_package(request, package_id="1"):
# def update_package_header(request, package_id="1"):
# def package(request, package_id="1"):
# def package_graph(request, package_id="1"):
# def edit_create_threatactor(request, threat_actor_id):
# def threatactors(request):
# def delete_comment_actor(request, threat_actor_id="1", comment_id="1"):
# def comment_actor(request, threat_actor_id="1"):
# def update_ta_header(request, threat_actor_id="1"):
# def delete_threatactor(request, threat_actor_id="1"):
# def threatactor(request, threat_actor_id="1"):
# def campaigns(request):
# def campaign(request, campaign_id="1"):
# def delete_comment_campaign(request, campaign_id="1", comment_id="1"):
# def comment_campaign(request, campaign_id):
# def update_campaign_header(request, campaign_id):
# def delete_campaign(request, campaign_id):
# def ttps(request):
# def delete_comment_ttp(request, ttp_id="1", comment_id="1"):
# def comment_ttp(request, ttp_id="1"):
# def ttp(request, ttp_id="1"):
# def update_ttp_header(request, ttp_id):
# def delete_ttp(request, ttp_id):
# def indicators(request):
# def comment_indicator(request, indicator_id="1"):
# def delete_comment_indicator(request, indicator_id="1", comment_id="1"):
# def update_indicator_header(request, indicator_id="1"):
# def delete_indicator(request, indicator_id):
# def indicator(request, indicator_id="1"):
# def observables(request):
# def comment_observable(request, observable_id="1"):
# def delete_comment_observable(request, observable_id="1", comment_id="1"):
# def delete_observable(request, observable_id):
# def update_observable_header(request, observable_id="1"):
# def observable(request, observable_id="1"):
# def malware_instances(request):
# def delete_malware_instance(request, mwi_id):
# def malware_instance(request, mwi_id="1"):
# def update_mwinstance_header(request, mwi_id):
# def attack_patterns(request):
# def delete_attack_pattern(request, ap_id):
# def update_attpattern_header(request, ap_id):
# def attack_pattern(request, ap_id="1"):


from django.conf.urls import url
from kraut_intel import views

urlpatterns = [
    url(r'^$', views.home, name='home'),
    # packages
    url(r'^packages/$', views.packages, name='packages'),
    url(r'^package/(?P<package_id>\d+)/$', views.package, name='package'),
    url(r'^package/(?P<package_id>\d+)/graph/$', views.package_graph, name='package_graph'),
    url(r'^package/(?P<package_id>\d+)/delete/$', views.delete_package, name='delete_package'),

# Path: kraut_intel/views.py
# def home(request):
# def packages(request):
# def add_item_to_package(request, package_id, item_id, item_name):
# def delete_package(request, package_id="1"):
# def edit_create_package(request, package_id=None):
# def delete_comment_package(request, package_id="1", comment_id="1"):
# def comment_package(request, package_id="1"):
# def update_package_header(request, package_id="1"):
# def package(request, package_id="1"):
# def package_graph(request, package_id="1"):
# def edit_create_threatactor(request, threat_actor_id):
# def threatactors(request):
# def delete_comment_actor(request, threat_actor_id="1", comment_id="1"):
# def comment_actor(request, threat_actor_id="1"):
# def update_ta_header(request, threat_actor_id="1"):
# def delete_threatactor(request, threat_actor_id="1"):
# def threatactor(request, threat_actor_id="1"):
# def campaigns(request):
# def campaign(request, campaign_id="1"):
# def delete_comment_campaign(request, campaign_id="1", comment_id="1"):
# def comment_campaign(request, campaign_id):
# def update_campaign_header(request, campaign_id):
# def delete_campaign(request, campaign_id):
# def ttps(request):
# def delete_comment_ttp(request, ttp_id="1", comment_id="1"):
# def comment_ttp(request, ttp_id="1"):
# def ttp(request, ttp_id="1"):
# def update_ttp_header(request, ttp_id):
# def delete_ttp(request, ttp_id):
# def indicators(request):
# def comment_indicator(request, indicator_id="1"):
# def delete_comment_indicator(request, indicator_id="1", comment_id="1"):
# def update_indicator_header(request, indicator_id="1"):
# def delete_indicator(request, indicator_id):
# def indicator(request, indicator_id="1"):
# def observables(request):
# def comment_observable(request, observable_id="1"):
# def delete_comment_observable(request, observable_id="1", comment_id="1"):
# def delete_observable(request, observable_id):
# def update_observable_header(request, observable_id="1"):
# def observable(request, observable_id="1"):
# def malware_instances(request):
# def delete_malware_instance(request, mwi_id):
# def malware_instance(request, mwi_id="1"):
# def update_mwinstance_header(request, mwi_id):
# def attack_patterns(request):
# def delete_attack_pattern(request, ap_id):
# def update_attpattern_header(request, ap_id):
# def attack_pattern(request, ap_id="1"):


# Path: kraut_intel/urls.py
from django.conf.urls import url
from kraut_intel import views


urlpatterns = [
    url(r'^$', views.home, name='home'),
    # packages
    url(r'^packages/$', views.packages, name='packages'),
    url(r'^package/(?P<package_id>\d+)/$', views.package, name='package'),
    url(r'^package/(?P<package_id>\d+)/graph/$', views.package_graph, name='package_graph'),
    url(r'^package/(?P<package_id>\d+)/delete/$', views.delete_package, name='delete_package'),

    url(r'^package/(?P<package_id>\d+)/update/header$', views.update_package_header, name='update_package_header'),