stoney mail: Mail Resource - REST API

From stoney cloud
Revision as of 13:14, 30 January 2014 by Chrigu (Talk | contribs)


Jump to: navigation, search

stoney mail

https://api.example.com/v1/services/mail
https://api.example.com/v1/services/mail/domains
https://api.example.com/v1/services/mail/domains/5000000
https://api.example.com/v1/services/mail/domains/5000000/accounts
https://api.example.com/v1/services/mail/domains/5000000/accounts/5000001
https://api.example.com/v1/services/mail/domains/5000000/aliases/5000002
https://api.example.com/v1/services/mail/domainaliases
https://api.example.com/v1/services/mail/domainaliases/5000003
https://api.example.com/v1/services/mail/accounts
https://api.example.com/v1/services/mail/accounts/5000001
https://api.example.com/v1/services/mail/aliases
https://api.example.com/v1/services/mail/aliases/5000002

Permission & Ownership object

"roles":
{
  [
    {
      "location": "https://api.example.com/v1/users/3000000",
      "role": "Admin"
    },
    {
      "location": "https://api.example.com/v1/users/3000001",
      "role": "Admin"
    },
    {
      "location": "https://api.example.com/v1/users/3000000",
      "role": "User"
    },
    { 
      /* ... */
    }
  ]
}