Open baotnq opened 7 years ago
Tạo user và update user: http://api.easywebhub.com/api-user/InsertUser json: {
"accountType":"user",
"username":"baotnq",
"password":"123456",
"status":"verified",
"info":{
"name":"Trịnh Ngọc Quốc Bảo",
"age":31,
"sex":"nam",
"address":""
},
"websites":[
{
"companyId":"baotnq",
"name":"website-easy",
"displayName":"Website of easywebhub",
"accessLevel":[
"creator",
"admin"
],
"url":"http://easywebhub.com",
"stagging":[
{
"name":"Github Environment",
"hostingfee":"free",
"url":"https://easywebhub.github.io/easy-websites",
"git":"https://github.com/easywebhub/easy-websites.git"
}
],
"production":[
{
"name":"Github Environment",
"hostingfee":"free",
"url":"https://easywebhub.github.io/easy-websites",
"git":"https://github.com/easywebhub/easy-websites.git"
},
{
"name":"EasyWeb Environment",
"hostingfee":"basic",
"url":"https://easy-web.easywebhub.com",
"git":"https://git.easywebhub.com/easy-websites.git"
}
]
}
]
}
Lưu ý : nếu muôn update user thì nhớ bỏ thêm accountId vào:
{
"accountId": "9edc490a-8adf-454f-adc5-18cbe06c4e21"
"accountType":"user",
"username":"baotnq",
"password":"123456",
"status":"verified",
"info":{
"name":"Trịnh Ngọc Quốc Bảo",
"age":31,
"sex":"nam",
"address":""
},
"websites":[
{
"companyId":"baotnq",
"name":"website-easy",
"displayName":"Website of easywebhub",
"accessLevel":[
"creator",
"admin"
],
"url":"http://easywebhub.com",
"stagging":[
{
"name":"Github Environment",
"hostingfee":"free",
"url":"https://easywebhub.github.io/easy-websites",
"git":"https://github.com/easywebhub/easy-websites.git"
}
],
"production":[
{
"name":"Github Environment",
"hostingfee":"free",
"url":"https://easywebhub.github.io/easy-websites",
"git":"https://github.com/easywebhub/easy-websites.git"
},
{
"name":"EasyWeb Environment",
"hostingfee":"basic",
"url":"https://easy-web.easywebhub.com",
"git":"https://git.easywebhub.com/easy-websites.git"
}
]
}
]
}
Tương tự muốn update lại tên Website bên trong thì nhớ bỏ Id của Website vào. có thể tham khảo mẫu data logon bên dưới
Logon : http://api.easywebhub.com//api-user/logon
json: {
"username":"thinnv", "password":"123456",
}
Account cho users sử dụng EasyBuilder để xây dựng và quản lý websites, gồm các api cơ bản sau
Data Json bên dưới: https://gist.github.com/baotnq/5c97a47a200784678d5057017feaa96a
@thinnv tạo ra trước cái API mẫu, gửi cho @nemesisqp nghe