| Info | ||||
|---|---|---|---|---|
| ||||
|
Get a List of Favourites
| Description | Get the logged in user's list of favourites |
URL | /api/favourites |
| HTTP Method | GET |
| Response Formats | json | xml |
Security | Authentication required |
Examples
...
| Use Case | Example Request |
|---|---|
| Get the logged in user's list of favourites |
...
...
| language | none |
|---|
|
...
Parameters
Parameter | Description | Required | Default Value | Example Value |
|---|---|---|---|---|
| format | Response formats. Possible values: xml or | json | No | xmlNone | json |
Create a Favourite
| Description | Create a favourite |
URL | /api/favourites |
| HTTP Method | POST |
Security | Authentication required |
Examples
| Use Case | Example Request |
|---|---|
| Create a favourite on project Sonar (key = org.codehaus.sonar:sonar) for the user admin/admin |
...
...
| language | none |
|---|
|
...
|
...
|
...
|
...
|
...
|
Parameters
Parameter | Description | Required | Default Value | Example Value |
|---|---|---|---|---|
key | id or key of the resource | Yes | None | org.codehaus.sonar:sonar |
...
| Description | Delete a favourite |
URL | /api/favourites/:key |
| HTTP Method | DELETE |
Security | Authentication required |
Examples
| Use Case | Example Request |
|---|---|
| Create a favourite on project Sonar (key = org.codehaus.sonar:sonar) for the user admin/admin |
|
Delete the favourite flag on project Sonar (key = org.codehaus.sonar:sonar) for the user admin/admin:
Code Block language none curl -u admin:admin -X DELETE http://localhost:9000/api/favourites/org.codehaus.sonar:sonar
...

