server url:
index
1.用户
1.1 成员入驻(包含创建用户、工作室和产品)
/api/all/ajax/user/newUser
POST
{
"memberType": 1, //成员类型:1代表负责人,2代表普通成员
"userId": 1,
"aliyunId": "abc@aliyun.com", //用户通过阿里云登录后的nick(邮箱格式)
"aliyunPk": 112340832748392, //阿里云用户主键id
"userName": "张三", //用户名
"telNum": "1234567890", //电话号码
"studioName": "小云儿工作室", //工作室名称
"productName": "创新O2O", //产品名称
"productDesc": "我爱我家", //产品描述
"inviteCode": "71b84171" //邀请码
}
{"code":200,"msg":"OK","data":123456 //工作室id}
1.2 获取个人信息
/api/all/ajax/user/getUser
GET
json={"userId":1243}
{
"code": 200,
"msg": null,
"data": {
"userId": 1243,
"aliyunId": "abcd@aliyun.com",
"aliyunPk": 112340832748212,
"userName": "李四",
"telNum": "1234567890",
"emailAddr": null,
"memberType": null,
"productName": null,
"studioName": null,
"productDesc": null,
"inviteCode": null,
"studioId": 2467170995606078167,
"productId": 1348635877618628308
}
}
1.3 更新个人信息
/api/all/ajax/user/updateUser
PUT
{
"userId":123,
"userName":"张三",
"telNum":"1234567890", //电话号码
"emailAddr":"zhangsan@163.com" //邮箱地址
}
{"code":200,"msg":null,"data":true//更新成功true,更新失败false}
2. 产品
2.1 获取产品信息
/api/all/ajax/product/getProduct
GET
json={"userId":1243,"studioId":2467170995606078167,"productId":1348635877618628308}
{"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 更新产品信息
/api/all/ajax/product/updateProduct
PUT
{"productId":22222,"productName":"abcd","productDesc":"尊渊测试","productLogo":"http://gtms01.alicdn.com/tps/i1/TB1Cx7MHpXXXXb5aXXXy8jZ9XXX-130-200.jpg"}
{"code":200,"msg":null,"data":true}
3. 工作室
3.1 获取工作室信息
/api/all/ajax/studio/getStudio
GET
json={“userId”:4343,”studioId”:64654}
{ code:200,
msg:"OK",
data:{“studioName”:”rwerwer”,”studioDesc”:”64564”,”studioLogo”:”gdgd”,studioId:6456456}}
3.2 更新工作室信息
/api/all/ajax/studio/updateStudio
PUT
{ "studioId":111,"userId":64654,"studioName":"tete","studioDesc":"eret","studioLogo":"fdsfsf"}
{ code:200, msg:"OK" ,data:1}
3.3 获取成员列表
/api/all/ajax/studio/getMembers
GET
json={"studioId":21314,"page":1,"size":10 }
{ code:200, msg:"OK",data:{"members"[{"userName":"wrw","roleName":"fsfsf"}],"count":123} }
3.4 邀请手机号
/api/all/ajax/studio/invitMember
POST
{"userId":214,"studioId":4234,"memberTelNum":"3243453535"}
{ code:500, msg:"该手机号已获其他工作室授权!无法准入!",data:"" }
4 项目
4.1 获取项目信息
/api/all/ajax/project/getProject
get
{ "userId":1,"pageNum":1,"pageSize":10}
{ code:200, msg:"OK" ,data:{pageNum: 1,
pageSize: 10,
totalNum: 100,
data: [{
projectName,
projectIdentifier,
residentArea,
userName,
gmtCreate
}, ...]}}
4.2 创建项目
/api/all/ajax/project/createProject
post
{
"studioId":4424
"projectName": "测试",
"projectDesc": "测试",
"projectIdentifier": "test_project",
"emailAddr": "aliyun.com", //项目owner邮箱
"residentArea": "private", // 项目空间类型:private(私有区)、swap(交换区)
"operatorUserId":1111, // 操作人 userid
}
{ code:200, msg:"OK" ,data:“ferfefe”}
5 项目
5.1 创建应用
/api/all/ajax/aceAppOperator/createApp
post
{"language":"java",
"title":"ysq_prexx",
"warehouseType":0,//0 svn,1 git
"subdomain":"sipre.aliapp.com",
"ha":1,//0单列,1集群
"scale":1,//0无弹性,1弹性
"studioId":3}
{"code":200,"msg":null,"errorMsg":null,"data":2}
5.2 启动应用
/api/all/ajax/aceAppOperator/startApp
post
{"id":1,"userId":1234}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.3 重启应用
/api/all/ajax/aceAppOperator/restartApp
post
{"id":1,"userId":1234}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.4 停止应用
/api/all/ajax/aceAppOperator/stopApp
post
{"id":1,"userId":1234}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.5 删除应用
/api/all/ajax/aceAppOperator/deleteApp
post
{"id":1,"userId":1234}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.6 更新应用信息
/api/all/ajax/aceAppOperator/modifyAppInfo
post
{"id":1,"userId":1234,"title":"ysqysq"}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.7 更新部署模式
/api/all/ajax/aceAppOperator/modifyRunMode
post
{"id":1,"userId":1234,"ha":1}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.8 更新是否开启弹性
/api/all/ajax/aceAppOperator/modifyScaleStrategy
post
{"id":1,"userId":1234,"scale":1}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.9 绑定外部域名
/api/all/ajax/aceAppOperator/bindOuterDomain
post
{"id":1,"userId":1234,"domain":"xxx.com"}
{"code":200,"msg":null,"errorMsg":null,"data":null}
5.10 接触外部域名
/api/all/ajax/aceAppOperator/unbindOuterDomain
post
{"id":1,"userId":1234,"domain":"xxx.com"}
{"code":200,"msg":null,"errorMsg":null,"data":null}
6. svn服务
6.1 创建svn
/api/all/ajax/aceSvn/create
POST
{"aliyunId":"dataplus@aliyun-inner.com","aliyunPk":1590229669507936,"appId":64857 //dae的应用id,"version":2//svn copy版本}
{"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列表
/api/all/ajax/aceSvn/list
GET
{"aliyunPk":1590229669507936,"appId":64857 //dae的应用id}
{"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密码
/api/all/ajax/aceSvn/passwd
PUT
{"aliyunId":"dataplus@aliyun-inner.com","password":"123456"}
{"code":200,"msg":null,"errorMsg":null,"data":true//成功true,失败false}