1024PaaS-租户业务接口
    1024PaaS-租户业务接口
    • 主要流程
    • codeZone
      • 获取codeZone列表
        GET
      • 创建codeZone
        POST
      • forkCodeZone
        POST
      • 导入 CodeZone
        POST
      • 设置环境变量,写入config配置文件中
        PUT
      • 编辑codeZone
        PUT
      • 获取编辑CodeZone的Playground(副本模式)
        GET
      • 编辑文件
        PUT
      • 获取编辑CodeZone的Playground
        GET
      • 从github导入创建codeZone
        POST
      • 下载代码文件
        GET
      • 导入文件
        POST
      • 删除codeZone
        DELETE
    • codeZoneResource
      • 设置codeZone的磁盘资源ID
        POST
      • 设置codeZone的URLResource
        POST
    • codeZoneMiddleware
      • 获取codeZone依赖的中间件列表
        GET
      • 增加codeZone依赖的中间件
        POST
      • 删除codeZone依赖的中间件
        DELETE
      • 查询中间件运行状态
        GET
    • codeZoneSnapshot
      • 复制 codeZoneSnapshot
        POST
      • 下载 codeZoneSnapshot 文件
        GET
      • 发布codeZoneSnapshot
        POST
    • unitTest
      • 获取依赖引入、初始化、准备、拆除方法行号
        GET
      • 获取运行结果
        GET
      • 运行单元测试
        POST
      • 获取单元测试测试用例列表
        GET
    • git-codeZone
      • add
      • addAndCommit
      • branch
      • createBranch
      • commit
      • log
      • reset
      • revert
      • 查看某次提交变更文件
      • 查看某次提交文件内容
      • status
    • docker
      • 下载代码文件
      • 发布 codeSnapshot
      • 查询 docker 状态
      • 下载代码文件
      • 获取代码文件内容
    • git-docker
      • add
      • addAndCommit
      • branch
      • createBranch
      • commit
      • log
      • reset
      • revert
      • 查看某次提交变更文件
      • 查看某次提交文件内容
      • status
    • unitTestFramework
      • 获取单元测试框架列表
    • environment
      • 获取基础环境列表
    • middleware
      • 获取PaaS支持的中间件类型列表
    • playground
      • 创建playground
      • 下载代码文件
      • 批量创建Playground并异步激活(返回结果不代表已全部激活完成)
      • 获取代码文件内容
      • 批量释放Playground
      • 获取 playground 状态
      • 导入文件 json
      • 激活playground
      • 获取playground状态
      • playground绑定CodeZoneSnapshot
      • playground绑定dockerContainer
      • 切换指定playground的环境版本
      • 删除 playground
      • 暂停playground
      • playground资源释放
      • playground 运行脚本
      • 获取运行结果
      • 修改资源配置
      • 获取当前资源
      • playground 停止运行脚本
    • git-playground
      • add
      • addAndCommit
      • branch
      • createBranch
      • commit
      • log
      • reset
      • revert
      • 查看某次提交变更文件
      • 查看某次提交文件内容
      • status
    • playgroundUnitTest
      • 创建测试用例文件
      • 获取依赖引入、初始化、准备、拆除方法行号
      • 获取运行结果
      • 运行单元测试
      • 停止单元测试
      • 获取单元测试测试用例列表
    • DiskResource
      • 申请一个磁盘资源
      • 上传文件
    • URLResource
      • 申请一个URL资源
      • 获取URL资源的suffix列表
    • ticket
      • 获取 jsSdk 需要信息
      • 获取入场券信息
      • 获取入场券
    • playgroundMiddleware
      • 获取执行结果
      • 执行命令 如 mysql 执行 sql (异步)
      • 导出数据库
      • 执行命令 如 mysql 执行 sql (同步)
      • 获取 playground 依赖的中间件列表
    • nix
      • 增加 nix 依赖
    • file
      • 根据fileContentKey获取文件内容
    • mq
      • 创建mq队列
    • IDE Server
      • 下线
      • 上线
      • 创建mq队列

    主要流程

    codeZone 模式#

    1.获取环境列表 (获取基础环境列表)#

    2.通过环境 id 创建codeZone (创建codeZone)#

    3.通过 codeZoneId 获取 playgroundId (获取编辑CodeZone的Playground)#

    4.通过 playgroundId 获取 ticket (获取入场券)#

    fork codeZone 模式#

    1.fork codeZone (forkCodeZone)#

    2.通过 codeZoneId 获取 playgroundId (获取编辑CodeZone的Playground)#

    3.通过 playgroundId 获取 ticket (获取入场券)#

    鉴权示例 (token获取)#

    修改于 2022-06-22 06:07:41
    下一页
    获取codeZone列表
    Built with