# 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
    url(r'^ttps/$', views.ttps, name='ttps'),
    url(r'^ttp/(?P<ttp_id>\d+)/$', views.ttp, name='ttp'),
    url(r'^ttp/(?P<ttp_id>\d+)/delete/$', views.delete_ttp, name='delete_ttp'),
    url(r'^ttp/(?P<ttp_id>\d+)/add/comment$', views.comment_ttp, name='comment_ttp'),
    url(r'^ttp/(?P<ttp_id>\d+)/update/header$', views.update_ttp_header, name='update_ttp_header'),
    url(r'^ttp/(?P<ttp_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_ttp, name='delete_comment_ttp'),
    # indicators
    url(r'^indicators/$', views.indicators, name='indicators'),
    url(r'^indicator/(?P<indicator_id>\d+)/$', views.indicator, name='indicator'),
    url(r'^indicator/(?P<indicator_id>\d+)/update/header$', views.update_indicator_header, name='update_indicator_header'),
    url(r'^indicator/(?P<indicator_id>\d+)/delete/$', views.delete_indicator, name='delete_indicator'),
    url(r'^indicator/(?P<indicator_id>\d+)/add/comment$', views.comment_indicator, name='comment_indicator'),
    url(r'^indicator/(?P<indicator_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_indicator, name='delete_comment_indicator'),
    # observables
    url(r'^observables/$', views.observables, name='observables'),
    url(r'^observable/(?P<observable_id>\d+)/$', views.observable, name='observable'),
    url(r'^observable/(?P<observable_id>\d+)/update/header$', views.update_observable_header, name='update_observable_header'),
    url(r'^observable/(?P<observable_id>\d+)/delete/$', views.delete_observable, name='delete_observable'),
    url(r'^observable/(?P<observable_id>\d+)/add/comment$', views.comment_observable, name='comment_observable'),
    url(r'^observable/(?P<observable_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_observable, name='delete_comment_observable'),
    # malware instance
    url(r'^mwinstances/$', views.malware_instances, name='malware_instances'),
    url(r'^mwinstance/(?P<mwi_id>\d+)/$', views.malware_instance, name='malware_instance'),
    url(r'^mwinstance/(?P<mwi_id>\d+)/delete/$', views.delete_malware_instance, name='delete_malware_instance'),
    url(r'^mwinstance/(?P<mwi_id>\d+)/update/header$', views.update_mwinstance_header, name='update_mwinstance_header'),
    # attack pattern
    url(r'^attpatterns/$', views.attack_patterns, name='attack_patterns'),
    url(r'^attpattern/(?P<ap_id>\d+)/$', views.attack_pattern, name='attack_pattern'),
    url(r'^mwinstance/(?P<ap_id>\d+)/delete/$', views.delete_attack_pattern, name='delete_attack_pattern'),
    url(r'^attpattern/(?P<ap_id>\d+)/update/header$', views.update_attpattern_header, name='update_attpattern_header'),

# 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

    url(r'^ttps/$', views.ttps, name='ttps'),
    url(r'^ttp/(?P<ttp_id>\d+)/$', views.ttp, name='ttp'),
    url(r'^ttp/(?P<ttp_id>\d+)/delete/$', views.delete_ttp, name='delete_ttp'),
    url(r'^ttp/(?P<ttp_id>\d+)/add/comment$', views.comment_ttp, name='comment_ttp'),
    url(r'^ttp/(?P<ttp_id>\d+)/update/header$', views.update_ttp_header, name='update_ttp_header'),
    url(r'^ttp/(?P<ttp_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_ttp, name='delete_comment_ttp'),
    # indicators
    url(r'^indicators/$', views.indicators, name='indicators'),
    url(r'^indicator/(?P<indicator_id>\d+)/$', views.indicator, name='indicator'),
    url(r'^indicator/(?P<indicator_id>\d+)/update/header$', views.update_indicator_header, name='update_indicator_header'),
    url(r'^indicator/(?P<indicator_id>\d+)/delete/$', views.delete_indicator, name='delete_indicator'),
    url(r'^indicator/(?P<indicator_id>\d+)/add/comment$', views.comment_indicator, name='comment_indicator'),
    url(r'^indicator/(?P<indicator_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_indicator, name='delete_comment_indicator'),
    # observables
    url(r'^observables/$', views.observables, name='observables'),
    url(r'^observable/(?P<observable_id>\d+)/$', views.observable, name='observable'),
    url(r'^observable/(?P<observable_id>\d+)/update/header$', views.update_observable_header, name='update_observable_header'),
    url(r'^observable/(?P<observable_id>\d+)/delete/$', views.delete_observable, name='delete_observable'),
    url(r'^observable/(?P<observable_id>\d+)/add/comment$', views.comment_observable, name='comment_observable'),
    url(r'^observable/(?P<observable_id>\d+)/del/comment/(?P<comment_id>\d+)/$', views.delete_comment_observable, name='delete_comment_observable'),
    # malware instance
    url(r'^mwinstances/$', views.malware_instances, name='malware_instances'),
    url(r'^mwinstance/(?P<mwi_id>\d+)/$', views.malware_instance, name='malware_instance'),
    url(r'^mwinstance/(?P<mwi_id>\d+)/delete/$', views.delete_malware_instance, name='delete_malware_instance'),
    url(r'^mwinstance/(?P<mwi_id>\d+)/update/header$', views.update_mwinstance_header, name='update_mwinstance_header'),
    # attack pattern
    url(r'^attpatterns/$', views.attack_patterns, name='attack_patterns'),
    url(r'^attpattern/(?P<ap_id>\d+)/$', views.attack_pattern, name='attack_pattern'),
    url(r'^mwinstance/(?P<ap_id>\d+)/delete/$', views.delete_attack_pattern, name='delete_attack_pattern'),
    url(r'^attpattern/(?P<ap_id>\d+)/update/header$', views.update_attpattern_header, name='update_attpattern_header'),

]