## Path: / admin / realms

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

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

Method Summary
Resource | 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
HTTP Example:
    GET /admin/realms
Returns a list of realms. This list is filtered based on what realms the caller is allowed to view. Output: `List<RealmRepresentation>` - Produces: application/json
HTTP Example:
    POST /admin/realms
Import a realm from a full representation of that realm. Realm name must be unique. Input: `RealmRepresentation` - JSON representation Output: `javax.ws.rs.core.Response` - Consumes: application/json
HTTP Example:
    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. Input: `org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput` - multipart/form data Output: `javax.ws.rs.core.Response` - Consumes: multipart/form-data