Resource URL: /platform/<<version=1>>/quota/settings/mappings

    Overview: This resource applies the standard collection pattern to quotas
              email mapping rules.

     Methods: GET, POST, DELETE

********************************************************************************

Method GET: List all rules.

       URL: GET /platform/<<version=1>>/quota/settings/mappings

There are no query arguments for this method.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "mappings": {
      "items": {
        "type": "object", 
        "properties": {
          "domain": {
            "required": true, 
            "type": "string", 
            "description": "The FQDN of the source domain to map."
          }, 
          "type": {
            "enum": [
              "ad", 
              "local", 
              "nis", 
              "ldap"
            ], 
            "type": "string", 
            "description": "The authentication provider type.", 
            "required": true
          }, 
          "mapping": {
            "required": true, 
            "type": "string", 
            "description": "The FQDN of destination domain to map to."
          }
        }
      }, 
      "type": "array"
    }
  }
}

********************************************************************************

Method POST: Create a new rule. The new rule must not conflict with an existing
             rule (e.g. match both the type and domain fields).

        URL: POST /platform/<<version=1>>/quota/settings/mappings

There are no query arguments for this method.

Required POST request body fields:
domain, type, mapping

POST request body schema:
{
  "type": "object", 
  "properties": {
    "domain": {
      "required": true, 
      "type": "string", 
      "description": "The FQDN of the source domain to map."
    }, 
    "type": {
      "enum": [
        "ad", 
        "local", 
        "nis", 
        "ldap"
      ], 
      "type": "string", 
      "description": "The authentication provider type.", 
      "required": true
    }, 
    "mapping": {
      "required": true, 
      "type": "string", 
      "description": "The FQDN of destination domain to map to."
    }
  }
}

POST response body schema:
{
  "type": "object", 
  "properties": {
    "id": {
      "required": true, 
      "type": "string", 
      "description": "ID of created item that can be used to refer to item in the collection-item resource path."
    }
  }
}

********************************************************************************

Method DELETE: Delete all rules.

          URL: DELETE /platform/<<version=1>>/quota/settings/mappings

There are no query arguments for this method.

There is no response body for this method.
