Param | Type | Details |
---|---|---|
id | string | The id of the bookmark to delete. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
platform | Object | The platform object (retrievable from Platform Service). |
id | string | The id of the comment to delete. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
platform | Object | The platform object (retrievable from Platform Service). |
id | string | The id of the bookmark to delete. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
id | string | The id of the saved query to delete. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
id | string | The id of the topic to delete. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
platform | Object | The platform object (retrievable from Platform Service). |
target (optional) | string | Returns all comments that apply to the specified target document. |
collection (optional) | string | |
topic (optional) | string |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
{{$root.myConstant}}
in your views.
Param | Type | Details |
---|---|---|
defaultValue | string | Value to be returned if context path does not exist. |
string | Returns the constant value. |
Param | Type | Details |
---|---|---|
defaultValue (optional) | string | Value to be returned if context path does not exist. Defaults to ’/‘ |
string | Returns a string of the context path or the default value. |
Param | Type | Details |
---|---|---|
query | string | The query to use against the platform. |
platform | string | The name of the platform to use. |
source-field | string | Name of a primary field to facet on (for example “Country”). The values of this facet will define the set of graph nodes with outgoing edges. |
target-field | string | Name of a secondary field to facet on (for example “City”), for every facet value of the primary field. The values of this facet will define the set of graph nodes with incoming edges. For example, say the primary facet (source-field) has values for Country=Germany and Country=France and the secondary facet (target-field) has values for City=Berlin, City=Munich and City=Paris. Then we add graph edges Germany—>Berlin, Germany—>Munich and France—>Paris. |
measure (optional) | string | Name of a numerical measure that defines the weight of each graph edge. When omitted, this defaults to the counts of the facets defined by the target-field. Some possible measures include “sum”, “mean” and “min”. (Only applicable if not using data attribute). |
measure-field (optional) | string | Field to measure, when the “measure” option is specified. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
options | Object | Object containing options to be sent in the get request. Like target, collection, topic etc. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
webservice-enabled: true
Your security.conf file can be found in ‘resources/conf/security/security.conf’.
For spring security you will need the following rule to allow access to the user api, if parts of the site are public.
<intercept-url pattern="/twigkit/api/user" access="isAnonymous() or isAuthenticated()"/>
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
callback | Function | The function to be called when the cancel event is fired. |
scope | Object | The $scope object for unsubscribing to the event when the scope is destroyed. |
Param | Type | Details |
---|---|---|
platform | Object | The platform object (retrievable from Platform Service). |
id | string | The id of the bookmark to delete. |
target | string | A unique identifier for a document that is being bookmarked. Example values: document123 Maximum length: 2083 characters |
topic (optional) | number | A topic to which the new bookmark should belong. |
collection (optional) | string | The collection to which the target document belongs. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
searchQuery | string | The search term to search against the results. |
platform | Object | The platform object (retrievable from Platform Service). |
params (optional) | Object | Other parameters to pass to the API. |
ignore-loading-bar (optional) | boolean | Whether the loading bar across the top of the page should be included for this http request. Default:true |
canceller (optional) | Promise | A promise object ($q.defer() ) used to cancel the request by using canceller.promise() |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
facet | string | The name of the facet to search. |
platform | Objectstring | The platform object (retrievable from Platform Service) or the name of the platform. |
query | Object | The query object. |
rpp | Number | The number of filters to be returned by the API. |
facetQuery | string | The facet query to use against the API end point. |
removeFilters (optional) | boolean | Whether to remove the current filters for the facet when performing the search. |
facetField (optional) | string | If provided this field may be used to create a filter on the facet which may not be the same as the facet name itself. |
wildcard (optional) | string | Pass the wildcard settings for the request, either left, right, both or none. |
canceller (optional) | Promise | A promise object ($q.defer() ) used to cancel the request by using canceller.promise() |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
query | string | The query to use against the platform. |
platform | Object | The platform object (retrievable from Platform Service). |
facet | Object | The facet to search upon. |
measure | string | What fact to use as an alternative to count as quantitative value for a filter. |
rpp | Number | The number of results to fetch. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |
Param | Type | Details |
---|---|---|
query | string | The query to use against the platform. |
platform | Object | The platform object (retrievable from Platform Service). |
fields | Object | The facet to fields upon. |
rpp | Number | The number of results to fetch. |
HttpPromise | Returns a promise which will resolve depending on the response from the API. |