示例#1
0
    # url(r'^enterprise/users$', AllUserView.as_view()),
    # # 企业中心模糊查询团队
    # url(r'^enterprise/tenants/query', TenantsView.as_view()),
    # get basic task guided information
    url(r'^enterprise/(?P<eid>[\w\-]+)/base-guidance$',
        BaseGuidance.as_view()),
    # 查看用户审核状态
    url(r'^user/applicants/status$', UserApplyStatusView.as_view()),
    # 用户申请某个团队
    url(r"^user/applicants/join$", JoinTeamView.as_view()),
    # 查询指定用户可以加入哪些团队
    url(r"^user/jointeams$", TeamUserCanJoin.as_view()),
    # 修改部署密钥
    url(
        r"^teams/(?P<tenantName>[\w\-]+)/apps/(?P<serviceAlias>[\w\-]+)/webhooks/updatekey$",
        UpdateSecretKey.as_view()),
    # 修改镜像源
    url(r'^teams/(?P<tenantName>[\w\-]+)/apps/(?P<serviceAlias>[\w\-]+)/image',
        ImageAppView.as_view()),
    # 查询构建源
    url(
        r'^teams/(?P<tenantName>[\w\-]+)/apps/(?P<serviceAlias>[\w\-]+)/buildsource',
        BuildSourceinfo.as_view())
]

# 云市应用升级相关接口
urlpatterns += [
    # 查询当前组下的云市应用
    url(r'teams/(?P<tenantName>[\w\-]+)/groups/(?P<group_id>[0-9]+)/apps$',
        app_upgrade.GroupAppView.as_view()),
    # 查询当前组下某云市应用的更新版本
示例#2
0
    url(r'^teams/(?P<tenantName>[\w\-]+)/apps/(?P<serviceAlias>[\w\-]+)/version/(?P<version_id>[\w\-]+)$',
        AppVersionManageView.as_view()),
    # 获取当前团队所有的申请者
    url(r'^teams/(?P<team_name>[\w\-]+)/applicants$', ApplicantsView.as_view()),
    # 获取企业下所有团队的列表
    url(r'^enterprise/teams$', AllTeamsView.as_view()),
    url(r'^enterprise/registerstatus$', RegisterStatusView.as_view()),
    # 获取企业信息
    url(r'^enterprise/info$', EnterpriseInfoView.as_view()),
    # 上传证书无用接口(为前端提供)
    url(r'^enterprise/team/certificate$', CertificateView.as_view()),
    # 企业管理员添加用户
    url(r'^enterprise/admin/add-user$', AdminAddUserView.as_view()),
    # # 获取企业下所有用户信息(企业中心中:删除用户)
    # url(r'^enterprise/users$', AllUserView.as_view()),
    # # 企业中心模糊查询团队
    # url(r'^enterprise/tenants/query', TenantsView.as_view()),
    # 查看用户审核状态
    url(r'^user/applicants/status$', UserApplyStatusView.as_view()),
    # 用户申请某个团队
    url(r"^user/applicants/join$", JoinTeamView.as_view()),
    # 查询指定用户可以加入哪些团队
    url(r"^user/jointeams$", TeamUserCanJoin.as_view()),
    # 修改部署密钥
    url(r"^teams/(?P<tenantName>[\w\-]+)/apps/(?P<serviceAlias>[\w\-]+)/webhooks/updatekey$", UpdateSecretKey.as_view()),
    # 修改镜像源
    url(r'^teams/(?P<tenantName>[\w\-]+)/apps/(?P<serviceAlias>[\w\-]+)/image', ImageAppView.as_view()),
    # 查询构建源
    url(r'^teams/(?P<tenantName>[\w\-]+)/apps/(?P<serviceAlias>[\w\-]+)/buildsource', BuildSourceinfo.as_view())
)