easywebhub / BackendEasyWeb

admin url
http://easyadmincp.com
0 stars 1 forks source link

review web api of easyweb #15

Open baotnq opened 8 years ago

baotnq commented 8 years ago

Review core features of README.md of this repo

@thinnv explain and support @thanhtdvn for more details

thinnv commented 8 years ago

Api InsertUser

https://gist.github.com/thinnv/04bdbcd4d113a42389e08a68d2c7d763

Api Logon

http://api.easywebhub.com/api-user/Logon POST

{
    "username": "test",
    "password": "123456"
}

Api CreateWebsite

http://api.easywebhub.com/api-user/CreateWebsite POST


{
   "Accounts":[{
   "AccountId": "b4327cfe-2135-4dc1-816f-3f2b7e36665a","AccessLevel":[], "AccountId": "34827534-76b5-433b-940d-f4b23172154c","AccessLevel":[]}],
   "Name":"tetest list 5 ",
   "DisplayName":"tetest list5 "
}
nemesisqp commented 8 years ago

insert user như trong ví dụ thành công, logon với data

{
    "username": "22",
    "password": "22"
}

lỗi

{
  "Result": false,
  "Message": "Value cannot be null.\r\nParameter name: source",
  "StatusCode": 444,
  "ItemsCount": 0,
  "Data": null
}
thinnv commented 8 years ago

Root cause: Account null Website Solution: Check null Listwebsite and return Array Empty