## Path: / admin / realms

Returns a list of realms. This list is filtered based on what realms the caller is allowed to view.

Sub-Resources

  Resources
  Name | Description
  --- | ---
  {realm} | Get the top-level representation of the realm.

Resource Methods

  Method Summary
  Name | Description
  --- | ---
  `GET /admin/realms` | Returns a list of realms.
  `POST /admin/realms` | Import a realm from a full representation of that realm.
  `POST /admin/realms` | Upload a realm from a uploaded JSON file.

Method Detail
### GET /admin/realms Returns a list of realms. This list is filtered based on what realms the caller is allowed to view.
  HTTP Example:
      GET /admin/realms
| API Example: `RealmsAdminResource.getRealms({});`
Output: `List<RealmRepresentation>` - Produces: application/json
### POST /admin/realms Import a realm from a full representation of that realm. Realm name must be unique.
  HTTP Example:
      POST /admin/realms
| API Example: `RealmsAdminResource.importRealm({'$entity': /* rep JSON representation */});`
Input: `RealmRepresentation` - JSON representation Output: `Response` - Consumes: application/json
### POST /admin/realms Upload a realm from a uploaded JSON file. The posted represenation is expected to be a multipart/form-data encapsulation of a JSON file. The same format a browser would use when uploading a file.
  HTTP Example:
      POST /admin/realms
| API Example: `RealmsAdminResource.uploadRealm({'$entity': /* input multipart/form data */});`
Input: `MultipartFormDataInput` - multipart/form data Output: `Response` - Consumes: multipart/form-data