com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Rating with REST API

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

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

ParameterExplanation
pathPath of the resource
OAuth access tokenAuthorized access token per user for an hour by default
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: Bearer { OAuth access token }
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: Bearer { OAuth access token }
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: Bearer { OAuth access token }
DescriptionIt deletes the user-specific rating for the requested resource.
ResponseHTTP 204 No Content
Response TypeJSON

 

 

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.