Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This section explains the following REST operations regarding the rating of resource which have been secured with Basic Auth.

The following terms explain the meaning of the parameters passed with the following REST URIs

ParameterExplanation
pathPath of the resource
valueUser's rating on the given resource. It varies in range from 1-5.
userUsername of the user

Get the Rating of a Resource

AttributesValues

HTTP Method                

GET
Request URI/rating?path={ resource path }
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionIt retrieves the current overall rating and the user rating of the requested resource.
ResponseHTTP 200 OK
Response TypeJSON

Add a Rating to a Resource

AttributesValues

HTTP Method                

POST
Request URI/rate?path={ resource path }&value={ your rating }
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionIt adds the user's rating for the requested resource. The rating can vary between 0 and 5.
ResponseHTTP 204 No Content
Response TypeJSON

Delete the User-specific Rating of a Resource

AttributesValues

HTTP Method                

DELETE
Request URI/rate?path={ resource path }
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionIt deletes the user-specific rating for the requested resource.
ResponseHTTP 204 No Content
Response TypeJSON

 

 

  • No labels