URLs
GET api.ashx/v2/remoting/url/entities.xml (or .json)
Identifies the Evolution entities defined on the given URL.
Request Parameters
Name | Type | Description | Location | Required | Default | Options |
---|---|---|---|---|---|---|
Url | string | The URL to inspect | Query String | Required |
Example Requests
C# REST SDK
This example uses the REST SDK to access the Community REST API within a .Net C# application. In the example, USER_NAME
is the user name of the effective user for the request and OAUTH_CLIENT_ID
and OAUTH_SECRET
are the OAuth client ID and secret, respectively, associated to this application as configured in Administration > Integration > OAuth Clients with the "Client Credentials" grant type enabled. See the documentation for the REST SDK for more details about installation, configuration, and usage options.
var host = new ClientCredentialsRestHost("USER_NAME", "https://mysite.com/", "OAUTH_CLIENT_ID", "OAUTH_SECRET"); var response = host.GetToDynamic(2, "remoting/url/entities.json", false, new RestGetOptions { QueryStringParameters = new System.Collections.Specialized.NameValueCollection { { "Url", "url" } } });
Widget Javascript
This example uses the rest JavaScript API to access the Community REST API within the Community web UI. When accessing the REST API through the javascript API, the effective user is the current contextual user of the web interface.
jQuery.telligent.evolution.get({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/remoting/url/entities.json', data: { 'Url': 'url' }, success: function(response) { } });
cURL
This example uses the cURL command-line HTTP utility. ENCODED_TOKEN
in the example is the base64-encoded concatenation of the user's API key (created from the user's profile), a colon (:), and the user's user name. Learn more about using the REST API.
curl -H "Rest-User-Token: ENCODED_TOKEN" -X GET https://mysite.com/api.ashx/v2/remoting/url/entities.xml?Url=url
Example Responses
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <UrlInformation> <Entities> <UrlEntity> <TypeName>typename</TypeName> <Id>id</Id> <Relationship>relationship</Relationship> <ContentId>49fec544-6df7-4a82-872b-f8be586d5e9e</ContentId> <ContentTypeId>9f5a6721-639d-4e1d-ab6a-ce63b7750f46</ContentTypeId> <ApplicationId>fe65240b-044c-4292-9946-f10e0361ecff</ApplicationId> <ApplicationTypeId>2d525bad-c4df-470d-a193-a1c6d66e5c3e</ApplicationTypeId> <ContainerId>bd519379-b61f-4e2f-b0f9-c0f28c5cceb1</ContainerId> <ContainerTypeId>9ba1ec43-dc34-4e27-a579-4a0855144e2f</ContainerTypeId> </UrlEntity> <UrlEntity> <TypeName>typename</TypeName> <Id>id</Id> <Relationship>relationship</Relationship> <ContentId>e3715662-2528-4ba1-84a7-bfcd9d548f80</ContentId> <ContentTypeId>6cdcf200-3bad-476d-af45-97b52545c337</ContentTypeId> <ApplicationId>b04540ec-eb38-4fa1-b7bb-e3fde05401b4</ApplicationId> <ApplicationTypeId>44df201a-07e6-42eb-96c7-8ce7ce35aab6</ApplicationTypeId> <ContainerId>49fec544-6df7-4a82-872b-f8be586d5e9e</ContainerId> <ContainerTypeId>9f5a6721-639d-4e1d-ab6a-ce63b7750f46</ContainerTypeId> </UrlEntity> </Entities> </UrlInformation> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>
JSON
{ "UrlInformation": { "Entities": [ { "TypeName": "typename", "Id": "id", "Relationship": "relationship", "ContentId": "49fec544-6df7-4a82-872b-f8be586d5e9e", "ContentTypeId": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46", "ApplicationId": "fe65240b-044c-4292-9946-f10e0361ecff", "ApplicationTypeId": "2d525bad-c4df-470d-a193-a1c6d66e5c3e", "ContainerId": "bd519379-b61f-4e2f-b0f9-c0f28c5cceb1", "ContainerTypeId": "9ba1ec43-dc34-4e27-a579-4a0855144e2f" }, { "TypeName": "typename", "Id": "id", "Relationship": "relationship", "ContentId": "e3715662-2528-4ba1-84a7-bfcd9d548f80", "ContentTypeId": "6cdcf200-3bad-476d-af45-97b52545c337", "ApplicationId": "b04540ec-eb38-4fa1-b7bb-e3fde05401b4", "ApplicationTypeId": "44df201a-07e6-42eb-96c7-8ce7ce35aab6", "ContainerId": "49fec544-6df7-4a82-872b-f8be586d5e9e", "ContainerTypeId": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46" } ] }, "Errors": [ "string", "string" ] }