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

« Previous Version 2 Next »

Table of Contents

Get a List of Favourites

DescriptionGet the logged in user's list of favourites

URL

/api/favourites

MethodGET

Security

Authentication required

Examples

  1. Return the logged in user's list of favourites:

Parameters

Parameter

Description

Required

Default Value
formatResponse formats: xml or jsonNoxml

Create a Favourite

 

DescriptionCreate a favourite

URL

/api/favourites

MethodPOST

Security

Authentication required

Examples

  1. Create a favourite on resource resourceToFlag for the user admin/admin:

Parameters

Parameter

Description

Required

Default Value

Value

key

id or key of the resource

Yes

None

org.codehaus.sonar:sonar

Delete a Favourite

 

DescriptionDelete a favourite

URL

/api/favourites/:key

MethodDELETE

Security

Authentication required

Examples

  1. Delete the favourite flag on resource resourceToUnflag for the user admin/admin:

Parameters

Parameter

Description

Required

Default Value

Value

key

id or key of the resource

Yes

None

org.codehaus.sonar:sonar

  • No labels