<filename>pipeline/contrib/web/urls_v1.py
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa

from django.conf.urls import url

from pipeline.contrib.web import views_v1

urlpatterns = [
    # 实例操作：启动，暂停，撤销等
    url(r'^act/instances/(?P<action>\w+)/$', views_v1.handle_instance_action),

    # 节点操作：重试，暂停，跳过等
    url(r'^act/nodes/(?P<action>\w+)/$', views_v1.handle_node_action),

    # 查看实例的状态信息
    url(r'^status/$', views_v1.get_state),

    # 获取某个子流程的参数填写表单
    url(r'^form/sub_proc/$', views_v1.get_form_for_subproc),

    # # 获取某个节点重试时的参数填写表单
    # url(r'^form/act_retry/$', views_v1.get_form_for_retry),

    # 获取某个节点的输入和输出
    url(r'^data/act/$', views_v1.get_data_for_activity),

    # 获取某个节点的执行详情
    url(r'^detail/act/$', views_v1.get_detail_for_activity),

    # 获取一个模板的变量列表
    url(r'^data/constants/(?P<template_id>\w+)/$', views_v1.get_constants_for_subproc),

    # 修改实例的输入
    url(r'^inputs/modify/instance/$', views_v1.modify_instance_constants),

    # 克隆一个模板
    url(r'^template/clone/$', views_v1.clone_template),

    # 克隆一个实例
    url(r'^instance/clone/$', views_v1.clone_instance),

    # 重置计时器
    url(r'^spec/timer/reset/$', views_v1.reset_timer),

    # 获取template的context信息
    url(r'^context/template/$', views_v1.get_template_context),

    # 获取instance的context信息
    url(r'^context/instance/$', views_v1.get_instance_context),

    # 获取某个节点的日志
    url(r'^log/node/(?P<node_id>\w+)/$', views_v1.get_node_log),
]

<filename>pipeline/contrib/web/urls_v1.py
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
""" # noqa

from django.conf.urls import url

from pipeline.contrib.web import views_v1

urlpatterns = [
    # 实例操作：启动，暂停，撤销等
    url(r'^act/instances/(?P<action>\w+)/$', views_v1.handle_instance_action),

    # 节点操作：重试，暂停，跳过等
    url(r'^act/nodes/(?P<action>\w+)/$', views_v1.handle_node_action),

    # 查看实例的状态信息
    url(r'^status/$', views_v1.get_state),

    # 获取某个子流程的参数填写表单
    url(r'^form/sub_proc/$', views_v1.get_form_for_subproc),

    # # 获取某个节点重试时的参数填写表单
    # url(r'^form/act_retry/$', views_v1.get_form_for_retry),

    # 获取某个节点的输入和输出
    url(r'^data/act/$', views_v1.get_data_for_activity),

    # 获取某个节点的执行详情
    url(r'^detail/act/$', views_v1.get_detail_for_activity),

    # 获取一个模板的变量列表
    url(r'^data/constants/(?P<template_id>\w+)/$', views_v1.get_constants_for_subproc),

    # 修改实例的输入
    url(r'^inputs/modify/instance/$', views_v1.modify_instance_constants),

    # 克隆一个模板
    url(r'^template/clone/$', views_v1.clone_template),

    # 克隆一个实例
    url(r'^instance/clone/$', views_v1.clone_instance),

    # 重置计时器
    url(r'^spec/timer/reset/$', views_v1.reset_timer),

    # 获取template的context信息
    url(r'^context/template/$', views_v1.get_template_context),

    # 获取instance的context信息
    url(r'^context/instance/$', views_v1.get_instance_context),

    # 获取某个节点的日志
    url(r'^log/node/(?P<node_id>\w+)/$', views_v1.get_node_log),
]

# -*- coding: utf-8 -*- Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://opensource.org/licenses/MIT Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. # noqa # 实例操作：启动，暂停，撤销等 # 节点操作：重试，暂停，跳过等 # 查看实例的状态信息 # 获取某个子流程的参数填写表单 # # 获取某个节点重试时的参数填写表单 # url(r'^form/act_retry/$', views_v1.get_form_for_retry), # 获取某个节点的输入和输出 # 获取某个节点的执行详情 # 获取一个模板的变量列表 # 修改实例的输入 # 克隆一个模板 # 克隆一个实例 # 重置计时器 # 获取template的context信息 # 获取instance的context信息 # 获取某个节点的日志