GET admin/permissions/{uid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
uid

string

Required

Body Parameters

None.

Response Information

Resource Description

PermissionGET
NameDescriptionTypeAdditional information
Organisations

Collection of PermissionOrgGET

None.

User

UserBasicGET

None.

Response Formats

application/json, text/json

Sample:
{
  "organisations": [
    {
      "id": 1,
      "modules": [
        {
          "id": 1,
          "role": {
            "id": 1,
            "adventureSites": [
              1,
              2
            ]
          }
        },
        {
          "id": 1,
          "role": {
            "id": 1,
            "adventureSites": [
              1,
              2
            ]
          }
        }
      ]
    },
    {
      "id": 1,
      "modules": [
        {
          "id": 1,
          "role": {
            "id": 1,
            "adventureSites": [
              1,
              2
            ]
          }
        },
        {
          "id": 1,
          "role": {
            "id": 1,
            "adventureSites": [
              1,
              2
            ]
          }
        }
      ]
    }
  ],
  "user": null
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'myPortalApi.Models.Admin.UserBasicGET' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'myPortalApi.Models.Admin.UserBasicGET' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.