[关闭]
@changedi 2021-08-20T16:09:48.000000Z 字数 6568 阅读 817

server url:

index

1.用户

1.1 成员入驻(包含创建用户、工作室和产品)

  1. /api/all/ajax/user/newUser
  1. POST
  1. {
  2. "memberType": 1, //成员类型:1代表负责人,2代表普通成员
  3. "userId": 1,
  4. "aliyunId": "abc@aliyun.com", //用户通过阿里云登录后的nick(邮箱格式)
  5. "aliyunPk": 112340832748392, //阿里云用户主键id
  6. "userName": "张三", //用户名
  7. "telNum": "1234567890", //电话号码
  8. "studioName": "小云儿工作室", //工作室名称
  9. "productName": "创新O2O", //产品名称
  10. "productDesc": "我爱我家", //产品描述
  11. "inviteCode": "71b84171" //邀请码
  12. }
  1. {"code":200,"msg":"OK","data":123456 //工作室id}

1.2 获取个人信息

  1. /api/all/ajax/user/getUser
  1. GET
  1. json={"userId":1243}
  1. {
  2. "code": 200,
  3. "msg": null,
  4. "data": {
  5. "userId": 1243,
  6. "aliyunId": "abcd@aliyun.com",
  7. "aliyunPk": 112340832748212,
  8. "userName": "李四",
  9. "telNum": "1234567890",
  10. "emailAddr": null,
  11. "memberType": null,
  12. "productName": null,
  13. "studioName": null,
  14. "productDesc": null,
  15. "inviteCode": null,
  16. "studioId": 2467170995606078167,
  17. "productId": 1348635877618628308
  18. }
  19. }

1.3 更新个人信息

  1. /api/all/ajax/user/updateUser
  1. PUT
  1. {
  2. "userId":123,
  3. "userName":"张三",
  4. "telNum":"1234567890", //电话号码
  5. "emailAddr":"zhangsan@163.com" //邮箱地址
  6. }
  1. {"code":200,"msg":null,"data":true//更新成功true,更新失败false}

2. 产品

2.1 获取产品信息

  1. /api/all/ajax/product/getProduct
  1. GET
  1. json={"userId":1243,"studioId":2467170995606078167,"productId":1348635877618628308}
  1. {"code":200,"msg":null,"data":{"id":9,"gmtCreate":1429507290000,"gmtModified":1429617874000,"productId":1348635877618628308,"productName":"abcd","productDesc":"尊渊测试","productLogo":"http://gtms01.alicdn.com/tps/i1/TB1Cx7MHpXXXXb5aXXXy8jZ9XXX-130-200.jpg","isDeleted":0}}

2.2 更新产品信息

  1. /api/all/ajax/product/updateProduct
  1. PUT
  1. {"productId":22222,"productName":"abcd","productDesc":"尊渊测试","productLogo":"http://gtms01.alicdn.com/tps/i1/TB1Cx7MHpXXXXb5aXXXy8jZ9XXX-130-200.jpg"}
  1. {"code":200,"msg":null,"data":true}

3. 工作室

3.1 获取工作室信息

  1. /api/all/ajax/studio/getStudio
  1. GET
  1. json={“userId”:4343,”studioId”:64654}
  1. { code:200,
  2. msg:"OK",
  3. data:{“studioName”:”rwerwer”,”studioDesc”:”64564”,”studioLogo”:”gdgd”,studioId:6456456}}

3.2 更新工作室信息

  1. /api/all/ajax/studio/updateStudio
  1. PUT
  1. { "studioId":111,"userId":64654,"studioName":"tete","studioDesc":"eret","studioLogo":"fdsfsf"}
  1. { code:200, msg:"OK" ,data:1}

3.3 获取成员列表

  1. /api/all/ajax/studio/getMembers
  1. GET
  1. json={"studioId":21314,"page":1,"size":10 }
  1. { code:200, msg:"OK",data:{"members"[{"userName":"wrw","roleName":"fsfsf"}],"count":123} }

3.4 邀请手机号

  1. /api/all/ajax/studio/invitMember
  1. POST
  1. {"userId":214,"studioId":4234,"memberTelNum":"3243453535"}
  1. { code:500, msg:"该手机号已获其他工作室授权!无法准入!",data:"" }

4 项目

4.1 获取项目信息

  1. /api/all/ajax/project/getProject
  1. get
  1. { "userId":1,"pageNum":1,"pageSize":10}
  1. { code:200, msg:"OK" ,data:{pageNum: 1,
  2. pageSize: 10,
  3. totalNum: 100,
  4. data: [{
  5. projectName,
  6. projectIdentifier,
  7. residentArea,
  8. userName,
  9. gmtCreate
  10. }, ...]}}

4.2 创建项目

  1. /api/all/ajax/project/createProject
  1. post
  1. {
  2. "studioId":4424
  3. "projectName": "测试",
  4. "projectDesc": "测试",
  5. "projectIdentifier": "test_project",
  6. "emailAddr": "aliyun.com", //项目owner邮箱
  7. "residentArea": "private", // 项目空间类型:private(私有区)、swap(交换区)
  8. "operatorUserId":1111, // 操作人 userid
  9. }
  1. { code:200, msg:"OK" ,data:“ferfefe”}

5 项目

5.1 创建应用

  1. /api/all/ajax/aceAppOperator/createApp
  1. post
  1. {"language":"java",
  2. "title":"ysq_prexx",
  3. "warehouseType":0,//0 svn,1 git
  4. "subdomain":"sipre.aliapp.com",
  5. "ha":1,//0单列,1集群
  6. "scale":1,//0无弹性,1弹性
  7. "studioId":3}
  1. {"code":200,"msg":null,"errorMsg":null,"data":2}

5.2 启动应用

  1. /api/all/ajax/aceAppOperator/startApp
  1. post
  1. {"id":1,"userId":1234}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.3 重启应用

  1. /api/all/ajax/aceAppOperator/restartApp
  1. post
  1. {"id":1,"userId":1234}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.4 停止应用

  1. /api/all/ajax/aceAppOperator/stopApp
  1. post
  1. {"id":1,"userId":1234}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.5 删除应用

  1. /api/all/ajax/aceAppOperator/deleteApp
  1. post
  1. {"id":1,"userId":1234}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.6 更新应用信息

  1. /api/all/ajax/aceAppOperator/modifyAppInfo
  1. post
  1. {"id":1,"userId":1234"title":"ysqysq"}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.7 更新部署模式

  1. /api/all/ajax/aceAppOperator/modifyRunMode
  1. post
  1. {"id":1,"userId":1234"ha":1}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.8 更新是否开启弹性

  1. /api/all/ajax/aceAppOperator/modifyScaleStrategy
  1. post
  1. {"id":1,"userId":1234"scale":1}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.9 绑定外部域名

  1. /api/all/ajax/aceAppOperator/bindOuterDomain
  1. post
  1. {"id":1,"userId":1234"domain":"xxx.com"}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

5.10 接触外部域名

  1. /api/all/ajax/aceAppOperator/unbindOuterDomain
  1. post
  1. {"id":1,"userId":1234"domain":"xxx.com"}
  1. {"code":200,"msg":null,"errorMsg":null,"data":null}

6. svn服务

6.1 创建svn

  1. /api/all/ajax/aceSvn/create
  1. POST
  1. {"aliyunId":"dataplus@aliyun-inner.com","aliyunPk":1590229669507936,"appId":64857 //dae的应用id,"version":2//svn copy版本}
  1. {"code":200,"msg":null,"errorMsg":null,"data":{"appId":0,"appGroupId":0,"userId":null,"userName":null,"version":"3","copyVersion":null,"comment":null,"url":"http://repo1.svn.ace.aliyun.com/svn/1590229669507936/67167/3","size":null,"statusName":null,"createTime":null,"link":null,"appStoreItemName":null,"appConfig":null}}

6.2 获取svn列表

  1. /api/all/ajax/aceSvn/list
  1. GET
  1. {"aliyunPk":1590229669507936,"appId":64857 //dae的应用id}
  1. {"code":200,"msg":null,"errorMsg":null,"data":[{"appId":0,"appGroupId":0,"userId":null,"userName":null,"version":"3","copyVersion":null,"comment":null,"url":"http://repo1.svn.ace.aliyun.com/svn/1590229669507936/67167/3","size":null,"statusName":"未部署","createTime":"2015-05-28 16:04:20","link":null,"appStoreItemName":null,"appConfig":null},{"appId":0,"appGroupId":0,"userId":null,"userName":null,"version":"2","copyVersion":null,"comment":null,"url":"http://repo1.svn.ace.aliyun.com/svn/1590229669507936/67167/2","size":null,"statusName":"未部署","createTime":"2015-05-28 16:03:15","link":null,"appStoreItemName":null,"appConfig":null},{"appId":0,"appGroupId":0,"userId":null,"userName":null,"version":"1","copyVersion":null,"comment":null,"url":"http://repo1.svn.ace.aliyun.com/svn/1590229669507936/67167/1","size":null,"statusName":"当前版本","createTime":"2015-05-28 15:59:31","link":"http://sisi.aliapp.com","appStoreItemName":null,"appConfig":null}]}

6.3 修改svn密码

  1. /api/all/ajax/aceSvn/passwd
  1. PUT
  1. {"aliyunId":"dataplus@aliyun-inner.com","password":"123456"}
  1. {"code":200,"msg":null,"errorMsg":null,"data":true//成功true,失败false}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注