Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Info
iconfalse
titleTable of Contents

Table of Contents
maxLevel1

Get a List of

Favourites

Favorites

DescriptionGet the logged in user's list of favouritesfavorites

URL

/api/favourites

HTTP MethodGET
Response Formatsjson | xml

Security

Authentication required

Examples

Use CaseExample Request
Get the logged in user's list of favouritesfavorites

GET http://localhost:9000/api/favourites

Parameters

Parameter

Description

Required

Default ValueExample Value
format

Response format can be set through:

  • Parameter format: xml | json
  • Or the 'Accept' property in the HTTP header:
    • Accept:text/xml
    • Accept:application/json
If nothing is set, json is used.
NoNonejson

Create a

...

Favorite

 

DescriptionCreate a favouritefavorite

URL

/api/favourites

HTTP MethodPOST

Security

Authentication required

Examples

Use CaseExample Request
Create a favourite favorite on project org.codehaus.sonar:sonar for the user admin/admin

curl -u admin:admin -d "key=org.codehaus.sonar:sonar" http://localhost:9000/api/favourites

Parameters

Parameter

Description

Required

Default Value

Example Value

key

id or key of the component

Yes

None

org.codehaus.sonar:sonar

Delete a

...

Favorite

 

DescriptionDelete a favouritefavorite

URL

/api/favourites/:key

HTTP MethodDELETE

Security

Authentication required

Examples

Use CaseExample Request
Delete the favourite favorite flag on project org.codehaus.sonar:sonar for the user admin/admin

curl -u admin:admin -X DELETE http://localhost:9000/api/favourites/org.codehaus.sonar:sonar

 

...