<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://recsyswiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jack+Kolb</id>
	<title>RecSysWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://recsyswiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jack+Kolb"/>
	<link rel="alternate" type="text/html" href="https://recsyswiki.com/wiki/Special:Contributions/Jack_Kolb"/>
	<updated>2026-05-01T08:12:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=535</id>
		<title>Common Recommender REST API</title>
		<link rel="alternate" type="text/html" href="https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=535"/>
		<updated>2011-07-12T21:13:14Z</updated>

		<summary type="html">&lt;p&gt;Jack Kolb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[MyMediaLite]] and [[LensKit]] projects are seeking to use a common [[Wikipedia:REST|REST API]] for recommender web applications. Specific implementations are encouraged to support the following core interface, but may extend the API as necessary.&lt;br /&gt;
&lt;br /&gt;
The API is based upon three basic entities:&lt;br /&gt;
* Users (Referenced by a Unique &amp;quot;uid&amp;quot;)&lt;br /&gt;
* Items (Referenced by a Unique &amp;quot;iid&amp;quot;)&lt;br /&gt;
* Events (Referenced by a Unique &amp;quot;eid&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
User, item, and event IDs are strings, but implementations will most likely specify a valid ID format.&lt;br /&gt;
&lt;br /&gt;
An additional type of ID, a revision ID, is used to identify any change to a user, item, or event. When one of these entities is either created or updated, the server will return a revision ID in its response. When a client wishes to make changes to a user, item, or event, it must provide the ID of the the entity's most recent revision. If this ID is not valid, the client's request will fail.&lt;br /&gt;
&lt;br /&gt;
Each user and item is associated with a set of events. An event is created whenever a user takes some meaningful action involving an item, such as a rating or purchase. This event is then associated with both the user and the item. The specific event types that are supported will vary between different implementations.&lt;br /&gt;
&lt;br /&gt;
==Working with Users==&lt;br /&gt;
&lt;br /&gt;
====Add New User to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new user to the server. If a user ID is specified and currently unused, the user is assigned the ID. If an existing user possesses the ID, the request fails.&lt;br /&gt;
:If no ID is specified, one is is generated for the user by the server and returned in the response.&lt;br /&gt;
:The request will also return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Add New or Update Existing User====&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If the specified ID is unused, a new user is created and assigned this ID.&lt;br /&gt;
:If an existing user possesses the ID, the request must provide the user's most recent revision ID in order to update their data.&lt;br /&gt;
:The request will return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Metadata====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves user data from the server. This includes user attributes, but does not include the user's history of events.&lt;br /&gt;
&lt;br /&gt;
====Remove User from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified user from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
====Access User Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified user. Implementations are free to specify their own fields.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Rating Predictions====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/predictions&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves user rating predictions for all possible items.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt;&lt;br /&gt;
:The ID of an item for which a rating prediction is to be retrieved. Multiple IDs can be specified simultaneously. If no IDs are specified, the server will return predictions for all possible items.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves user rating predictions for items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;ratingOverride&amp;lt;/var&amp;gt;&lt;br /&gt;
:Enables the server to return a user rating rather than a prediction if one has been provided for an item.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?ratingOverride=true&amp;lt;/tt&amp;gt; Allows the server to retrieve user ratings in place of predictions when they are available.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Item Recommendations====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/recommendations&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the complete recommendation set for the specified user. If possible, items are returned in ranked order.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;count&amp;lt;/var&amp;gt;&lt;br /&gt;
:The maximum number of recommendations to be returned. If this maximum cannot be reached, the server returns as many recommendations as possible.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/recommendations?count=10&amp;lt;/tt&amp;gt; Retrieves a maximum of 10 recommended items.&lt;br /&gt;
&lt;br /&gt;
====Access User History====&lt;br /&gt;
The supported event types will vary between implementation. Each of these event types may also support a unique set of query parameters.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events/purchases&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, purchases) associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/currentRatings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves a simple vector containing the most recent rating of all items currently rated by the user.&lt;br /&gt;
:Note that this will return the same set of events as &amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings?history=current&amp;amp;null=false&amp;lt;/tt&amp;gt;, but in a simple vector form.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt; &lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The ID of an item with which all returned events are associated. If no ID is specified, the server will consider all possible items.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events/purchases?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves all user purchase events associated with items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the user that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;null&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required Specifically for the Rating Event Type&amp;lt;/i&amp;gt;&lt;br /&gt;
:Instructs the server to exclude any null ratings from the returned collection of events. By default, null-valued ratings are included.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings?item=42&amp;amp;item=70&amp;amp;null=false&amp;lt;/tt&amp;gt; Returns all user rating events associated with items 42 and 70, excluding any null ratings.&lt;br /&gt;
&lt;br /&gt;
====Add New Event to User History====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users/[uid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Add a new event of the specified type (In this case, a rating) to the server. If an ID is specified in the request body, the event is given the specified ID.&lt;br /&gt;
:Otherwise, the server generates an ID for the event and returns it in the response.&lt;br /&gt;
&lt;br /&gt;
==Working with Items==&lt;br /&gt;
====Add New Item to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /items&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new item to the server. If an item ID is specified and currently unused, the item is assigned this ID. If an existing item possesses the ID, the request fails.&lt;br /&gt;
:If no ID is specified, one is is generated for the item by the server and returned in the response.&lt;br /&gt;
:The request will also return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Add New or Update Existing Item====&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If the specified ID is unused, a new item is created and assigned the ID.&lt;br /&gt;
:If an existing item possesses the ID, the request must provide the item's most recent revision ID in order to update its data.&lt;br /&gt;
:The request will return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Retrieve Item Metadata====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves item data from the server. This includes item attributes, but does not include the item's history of events.&lt;br /&gt;
&lt;br /&gt;
====Remove Item from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the item with the specified ID from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
====Access Item Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified item. Implementations are free to define their own fields.&lt;br /&gt;
&lt;br /&gt;
====Access Item History====&lt;br /&gt;
Supported event types and query parameters will vary between implementations.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, ratings) associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;user&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The ID of a user with which all returned events are associated. If no user ID is specified, the server will consider all possible users.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings?user=18&amp;amp;user=41&amp;lt;/tt&amp;gt; Retrieves all item rating events associated with users 18 and 41.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the item that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;null&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for the Rating Event Type&amp;lt;/i&amp;gt;&lt;br /&gt;
:Instructs the server to exclude null ratings. By default, null-valued ratings are included.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings?history=1m&amp;amp;null=false&amp;lt;/tt&amp;gt; Returns all item ratings that have occurred within the past month, excluding any null ratings.&lt;br /&gt;
&lt;br /&gt;
==Working with Events==&lt;br /&gt;
====Retrieve a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the specified event.&lt;br /&gt;
&lt;br /&gt;
====Remove a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified event from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
==Miscellaneous==&lt;br /&gt;
====Retrieve System Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves general system-wide statistics.&lt;/div&gt;</summary>
		<author><name>Jack Kolb</name></author>
		
	</entry>
	<entry>
		<id>https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=534</id>
		<title>Common Recommender REST API</title>
		<link rel="alternate" type="text/html" href="https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=534"/>
		<updated>2011-07-12T21:12:04Z</updated>

		<summary type="html">&lt;p&gt;Jack Kolb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[MyMediaLite]] and [[LensKit]] projects are seeking to use a common [[Wikipedia:REST|REST API]] for recommender web applications. Specific implementations are encouraged to support the following core interface, but may extend the API as necessary.&lt;br /&gt;
&lt;br /&gt;
The API is based upon three basic entities:&lt;br /&gt;
* Users (Referenced by a Unique &amp;quot;uid&amp;quot;)&lt;br /&gt;
* Items (Referenced by a Unique &amp;quot;iid&amp;quot;)&lt;br /&gt;
* Events (Referenced by a Unique &amp;quot;eid&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
User, item, and event IDs are strings, but implementations will most likely specify a valid ID format.&lt;br /&gt;
&lt;br /&gt;
An additional type of ID, a revision ID, is used to identify any change to a user, item, or event. When one of these entities is either created or updated, the server will return a revision ID in its response. When a client wishes to make changes to a user, item, or event, it must provide the ID of the the entity's most recent revision. If this ID is not valid, the client's request will fail.&lt;br /&gt;
&lt;br /&gt;
Each user and item is associated with a set of events. An event is created whenever a user takes some meaningful action involving an item, such as a rating or purchase. This event is then associated with both the user and the item. The specific event types that are supported will vary between different implementations.&lt;br /&gt;
&lt;br /&gt;
==Working with Users==&lt;br /&gt;
&lt;br /&gt;
====Add New User to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new user to the server. If a user ID is specified and currently unused, the user is assigned the ID. If an existing user possesses the ID, the request fails.&lt;br /&gt;
:If no ID is specified, one is is generated for the user by the server and returned in the response.&lt;br /&gt;
:The request will also return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Add New or Update Existing User====&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If the specified ID is unused, a new user is created and assigned this ID.&lt;br /&gt;
:If an existing user possesses the ID, the request must provide the user's most recent revision ID in order to update their data.&lt;br /&gt;
:The request will return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Metadata====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]&lt;br /&gt;
:Retrieves user data from the server. This includes user attributes, but does not include the user's history of events.&lt;br /&gt;
&lt;br /&gt;
====Remove User from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified user from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
====Access User Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified user. Implementations are free to specify their own fields.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Rating Predictions====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/predictions&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves user rating predictions for all possible items.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt;&lt;br /&gt;
:The ID of an item for which a rating prediction is to be retrieved. Multiple IDs can be specified simultaneously. If no IDs are specified, the server will return predictions for all possible items.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves user rating predictions for items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;ratingOverride&amp;lt;/var&amp;gt;&lt;br /&gt;
:Enables the server to return a user rating rather than a prediction if one has been provided for an item.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?ratingOverride=true&amp;lt;/tt&amp;gt; Allows the server to retrieve user ratings in place of predictions when they are available.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Item Recommendations====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/recommendations&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the complete recommendation set for the specified user. If possible, items are returned in ranked order.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;count&amp;lt;/var&amp;gt;&lt;br /&gt;
:The maximum number of recommendations to be returned. If this maximum cannot be reached, the server returns as many recommendations as possible.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/recommendations?count=10&amp;lt;/tt&amp;gt; Retrieves a maximum of 10 recommended items.&lt;br /&gt;
&lt;br /&gt;
====Access User History====&lt;br /&gt;
The supported event types will vary between implementation. Each of these event types may also support a unique set of query parameters.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events/purchases&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, purchases) associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/currentRatings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves a simple vector containing the most recent rating of all items currently rated by the user.&lt;br /&gt;
:Note that this will return the same set of events as &amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings?history=current&amp;amp;null=false&amp;lt;/tt&amp;gt;, but in a simple vector form.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt; &lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The ID of an item with which all returned events are associated. If no ID is specified, the server will consider all possible items.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events/purchases?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves all user purchase events associated with items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the user that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;null&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required Specifically for the Rating Event Type&amp;lt;/i&amp;gt;&lt;br /&gt;
:Instructs the server to exclude any null ratings from the returned collection of events. By default, null-valued ratings are included.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings?item=42&amp;amp;item=70&amp;amp;null=false&amp;lt;/tt&amp;gt; Returns all user rating events associated with items 42 and 70, excluding any null ratings.&lt;br /&gt;
&lt;br /&gt;
====Add New Event to User History====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users/[uid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Add a new event of the specified type (In this case, a rating) to the server. If an ID is specified in the request body, the event is given the specified ID.&lt;br /&gt;
:Otherwise, the server generates an ID for the event and returns it in the response.&lt;br /&gt;
&lt;br /&gt;
==Working with Items==&lt;br /&gt;
====Add New Item to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /items&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new item to the server. If an item ID is specified and currently unused, the item is assigned this ID. If an existing item possesses the ID, the request fails.&lt;br /&gt;
:If no ID is specified, one is is generated for the item by the server and returned in the response.&lt;br /&gt;
:The request will also return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Add New or Update Existing Item====&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If the specified ID is unused, a new item is created and assigned the ID.&lt;br /&gt;
:If an existing item possesses the ID, the request must provide the item's most recent revision ID in order to update its data.&lt;br /&gt;
:The request will return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Retrieve Item Metadata====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]&lt;br /&gt;
:Retrieves item data from the server. This includes item attributes, but does not include the item's history of events.&lt;br /&gt;
&lt;br /&gt;
====Remove Item from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the item with the specified ID from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
====Access Item Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified item. Implementations are free to define their own fields.&lt;br /&gt;
&lt;br /&gt;
====Access Item History====&lt;br /&gt;
Supported event types and query parameters will vary between implementations.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, ratings) associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;user&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The ID of a user with which all returned events are associated. If no user ID is specified, the server will consider all possible users.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings?user=18&amp;amp;user=41&amp;lt;/tt&amp;gt; Retrieves all item rating events associated with users 18 and 41.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the item that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;null&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for the Rating Event Type&amp;lt;/i&amp;gt;&lt;br /&gt;
:Instructs the server to exclude null ratings. By default, null-valued ratings are included.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings?history=1m&amp;amp;null=false&amp;lt;/tt&amp;gt; Returns all item ratings that have occurred within the past month, excluding any null ratings.&lt;br /&gt;
&lt;br /&gt;
==Working with Events==&lt;br /&gt;
====Retrieve a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the specified event.&lt;br /&gt;
&lt;br /&gt;
====Remove a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified event from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
==Miscellaneous==&lt;br /&gt;
====Retrieve System Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves general system-wide statistics.&lt;/div&gt;</summary>
		<author><name>Jack Kolb</name></author>
		
	</entry>
	<entry>
		<id>https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=533</id>
		<title>Common Recommender REST API</title>
		<link rel="alternate" type="text/html" href="https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=533"/>
		<updated>2011-07-12T21:03:54Z</updated>

		<summary type="html">&lt;p&gt;Jack Kolb: Revision of LensKit API Draft&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[MyMediaLite]] and [[LensKit]] projects are seeking to use a common [[Wikipedia:REST|REST API]] for recommender web applications. Specific implementations are encouraged to support the following core interface, but may extend the API as necessary.&lt;br /&gt;
&lt;br /&gt;
The API is based upon three basic entities:&lt;br /&gt;
* Users (Referenced by a Unique &amp;quot;uid&amp;quot;)&lt;br /&gt;
* Items (Referenced by a Unique &amp;quot;iid&amp;quot;)&lt;br /&gt;
* Events (Referenced by a Unique &amp;quot;eid&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
User, item, and event IDs are strings, but implementations will most likely specify a valid ID format.&lt;br /&gt;
&lt;br /&gt;
An additional type of ID, a revision ID, is used to identify any change to a user, item, or event. When one of these entities is either created or updated, the server will return a revision ID in its response. When a client wishes to make changes to a user, item, or event, it must provide the ID of the the entity's most recent revision. If this ID is not valid, the client's request will fail.&lt;br /&gt;
&lt;br /&gt;
Each user and item is associated with a set of events. An event is created whenever a user takes some meaningful action involving an item, such as a rating or purchase. This event is then associated with both the user and the item. The specific event types that are supported will vary between different implementations.&lt;br /&gt;
&lt;br /&gt;
==Working with Users==&lt;br /&gt;
&lt;br /&gt;
====Add New User to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new user to the server. If a user ID is specified and currently unused, the user is assigned the ID. If an existing user possesses the ID, the request fails.&lt;br /&gt;
:If no ID is specified, one is is generated for the user by the server and returned in the response.&lt;br /&gt;
:The request will also return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Add New or Update Existing User====&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If the specified ID is unused, a new user is created and assigned this ID.&lt;br /&gt;
:If an existing user possesses the ID, the request must provide the user's most recent revision ID in order to update their data.&lt;br /&gt;
:The request will return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Remove User from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified user from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
====Access User Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified user. Implementations are free to specify their own fields.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Rating Predictions====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/predictions&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves user rating predictions for all possible items.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt;&lt;br /&gt;
:The ID of an item for which a rating prediction is to be retrieved. Multiple IDs can be specified simultaneously. If no IDs are specified, the server will return predictions for all possible items.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves user rating predictions for items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;ratingOverride&amp;lt;/var&amp;gt;&lt;br /&gt;
:Enables the server to return a user rating rather than a prediction if one has been provided for an item.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?ratingOverride=true&amp;lt;/tt&amp;gt; Allows the server to retrieve user ratings in place of predictions when they are available.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Item Recommendations====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/recommendations&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the complete recommendation set for the specified user. If possible, items are returned in ranked order.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;count&amp;lt;/var&amp;gt;&lt;br /&gt;
:The maximum number of recommendations to be returned. If this maximum cannot be reached, the server returns as many recommendations as possible.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/recommendations?count=10&amp;lt;/tt&amp;gt; Retrieves a maximum of 10 recommended items.&lt;br /&gt;
&lt;br /&gt;
====Access User History====&lt;br /&gt;
The supported event types will vary between implementation. Each of these event types may also support a unique set of query parameters.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events/purchases&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, purchases) associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/currentRatings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves a simple vector containing the most recent rating of all items currently rated by the user.&lt;br /&gt;
:Note that this will return the same set of events as &amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings?history=current&amp;amp;null=false&amp;lt;/tt&amp;gt;, but in a simple vector form.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt; &lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The ID of an item with which all returned events are associated. If no ID is specified, the server will consider all possible items.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events/purchases?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves all user purchase events associated with items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the user that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;null&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required Specifically for the Rating Event Type&amp;lt;/i&amp;gt;&lt;br /&gt;
:Instructs the server to exclude any null ratings from the returned collection of events. By default, null-valued ratings are included.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings?item=42&amp;amp;item=70&amp;amp;null=false&amp;lt;/tt&amp;gt; Returns all user rating events associated with items 42 and 70, excluding any null ratings.&lt;br /&gt;
&lt;br /&gt;
====Add New Event to User History====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users/[uid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Add a new event of the specified type (In this case, a rating) to the server. If an ID is specified in the request body, the event is given the specified ID.&lt;br /&gt;
:Otherwise, the server generates an ID for the event and returns it in the response.&lt;br /&gt;
&lt;br /&gt;
==Working with Items==&lt;br /&gt;
====Add New Item to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /items&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new item to the server. If an item ID is specified and currently unused, the item is assigned this ID. If an existing item possesses the ID, the request fails.&lt;br /&gt;
:If no ID is specified, one is is generated for the item by the server and returned in the response.&lt;br /&gt;
:The request will also return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Add New or Update Existing Item====&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If the specified ID is unused, a new item is created and assigned the ID.&lt;br /&gt;
:If an existing item possesses the ID, the request must provide the item's most recent revision ID in order to update its data.&lt;br /&gt;
:The request will return a new revision ID for use by a future update request.&lt;br /&gt;
&lt;br /&gt;
====Remove Item from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the item with the specified ID from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
====Access Item Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified item. Implementations are free to define their own fields.&lt;br /&gt;
&lt;br /&gt;
====Access Item History====&lt;br /&gt;
Supported event types and query parameters will vary between implementations.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, ratings) associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;user&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The ID of a user with which all returned events are associated. If no user ID is specified, the server will consider all possible users.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings?user=18&amp;amp;user=41&amp;lt;/tt&amp;gt; Retrieves all item rating events associated with users 18 and 41.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for all Event Types&amp;lt;/i&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the item that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;null&amp;lt;/var&amp;gt;&lt;br /&gt;
:&amp;lt;i&amp;gt;Required for the Rating Event Type&amp;lt;/i&amp;gt;&lt;br /&gt;
:Instructs the server to exclude null ratings. By default, null-valued ratings are included.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings?history=1m&amp;amp;null=false&amp;lt;/tt&amp;gt; Returns all item ratings that have occurred within the past month, excluding any null ratings.&lt;br /&gt;
&lt;br /&gt;
==Working with Events==&lt;br /&gt;
====Retrieve a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the specified event.&lt;br /&gt;
&lt;br /&gt;
====Remove a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified event from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
==Miscellaneous==&lt;br /&gt;
====Retrieve System Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves general system-wide statistics.&lt;/div&gt;</summary>
		<author><name>Jack Kolb</name></author>
		
	</entry>
	<entry>
		<id>https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=528</id>
		<title>Common Recommender REST API</title>
		<link rel="alternate" type="text/html" href="https://recsyswiki.com/index.php?title=Common_Recommender_REST_API&amp;diff=528"/>
		<updated>2011-07-06T20:38:58Z</updated>

		<summary type="html">&lt;p&gt;Jack Kolb: First draft of REST API from LensKit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[MyMediaLite]] and [[LensKit]] projects are seeking to use a common REST API for recommender web applications. Specific implementations are encouraged to support the following core interface, but may extend the API as necessary.&lt;br /&gt;
&lt;br /&gt;
The API is based upon three basic entities:&lt;br /&gt;
* Users (Referenced by a Unique &amp;quot;uid&amp;quot;)&lt;br /&gt;
* Items (Referenced by a Unique &amp;quot;iid&amp;quot;)&lt;br /&gt;
* Events (Referenced by a Unique &amp;quot;eid&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Each user and item is associated with a set of events. An event is created whenever a user takes some meaningful action involving an item, such as a rating or purchase. This event is then associated with both the user and the item. The specific event types that are supported will vary between different implementations.&lt;br /&gt;
&lt;br /&gt;
==Working with Users==&lt;br /&gt;
&lt;br /&gt;
====Add New User to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new user to the server. An ID is generated by the server and returned in the response.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new user, with a client-defined ID, to the server.&lt;br /&gt;
&lt;br /&gt;
====Remove User from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /users/[uid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified user from the server. Precise behavior will vary between implementations.&lt;br /&gt;
====Access User Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified user. Implementations are free to specify their own fields.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Rating Predictions====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/predictions&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves user rating predictions for all possible items.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt;&lt;br /&gt;
:The ID of an item for which a rating prediction is to be retrieved. Multiple IDs can be specified simultaneously.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves user rating predictions for items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;ratingOverride&amp;lt;/var&amp;gt;&lt;br /&gt;
:Enables the server to return a user rating rather than a prediction if one has been provided for an item.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/predictions?ratingOverride=true&amp;lt;/tt&amp;gt; Allows the server to retrieve user ratings in place of predictions when they are available.&lt;br /&gt;
&lt;br /&gt;
====Retrieve User Item Recommendations====&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/recommendations&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the complete recommendation set for the specified user. If possible, items are returned in ranked order.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;count&amp;lt;/var&amp;gt;&lt;br /&gt;
:The maximum number of recommendations to be returned. If this maximum cannot be reached, the server returns as many recommendations as possible.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/recommendations?count=10&amp;lt;/tt&amp;gt; Retrieves a maximum of 10 recommended items.&lt;br /&gt;
&lt;br /&gt;
====Access User History====&lt;br /&gt;
Supported event types and query parameters will vary between implementations.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, ratings) associated with the specified user.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /users/[uid]/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves a vector containing the most recent rating of all items rated by the user.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;item&amp;lt;/var&amp;gt;&lt;br /&gt;
:The ID of an item with which all returned events are associated.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /users/[uid]/events/ratings?item=42&amp;amp;item=70&amp;lt;/tt&amp;gt; Retrieves all user rating events associated with items 42 and 70.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET/users/[uid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the user that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
====Add New Event to User History====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /users/[uid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Add a new event of the specified type (In this case, a rating) to the server. The event's ID is returned in the response.&lt;br /&gt;
&lt;br /&gt;
==Working with Items==&lt;br /&gt;
====Add New Item to Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;POST /items&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new item to the server. An ID is generated by the server and returned in the response.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;PUT /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Adds a new item, with a client-defined ID, to the server.&lt;br /&gt;
&lt;br /&gt;
====Remove Item from Server====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /items/[iid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the item with the specified ID from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
====Access Item Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves common statistics regarding the specified item. Implementations are free to define their own fields.&lt;br /&gt;
&lt;br /&gt;
====Access Item History====&lt;br /&gt;
Supported event types and query parameters will vary between implementations.&lt;br /&gt;
=====Basic HTTP Calls=====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves all events associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieve all events of a specific type (In this case, ratings) associated with the specified item.&lt;br /&gt;
&lt;br /&gt;
=====Query Parameters=====&lt;br /&gt;
;&amp;lt;var&amp;gt;user&amp;lt;/var&amp;gt;&lt;br /&gt;
:The ID of a user with which all returned events are associated.&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET /items/[iid]/events/ratings?user=18&amp;amp;user=41&amp;lt;/tt&amp;gt; Retrieves all item rating events associated with users 18 and 41.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;var&amp;gt;history&amp;lt;/var&amp;gt;&lt;br /&gt;
:The time period during which all returned events occurred&lt;br /&gt;
:ex: &amp;lt;tt&amp;gt;GET/items/[iid]/events?history=1m&amp;lt;/tt&amp;gt; Retrieves all events associated with the item that have occurred within the past month.&lt;br /&gt;
&lt;br /&gt;
==Working with Events==&lt;br /&gt;
====Retrieve a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves the specified event.&lt;br /&gt;
&lt;br /&gt;
====Remove a Specific Event====&lt;br /&gt;
;&amp;lt;tt&amp;gt;DELETE /events/[eid]&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Deletes the specified event from the server. Precise behavior will vary between implementations.&lt;br /&gt;
&lt;br /&gt;
==Miscellaneous==&lt;br /&gt;
====Retrieve System Statistics====&lt;br /&gt;
;&amp;lt;tt&amp;gt;GET /statistics&amp;lt;/tt&amp;gt;&lt;br /&gt;
:Retrieves general system-wide statistics.&lt;/div&gt;</summary>
		<author><name>Jack Kolb</name></author>
		
	</entry>
</feed>