| Description | Get the logged in user's list of favourites |
URL | /api/favourites |
| HTTP Method | GET |
| Response Formats | json | xml |
Security | Authentication required |
| Use Case | Example Request |
|---|---|
| Get the logged in user's list of favourites |
Parameter | Description | Required | Default Value | Example Value |
|---|---|---|---|---|
| format | Response format can be set through:
If nothing is set, json is used. | No | None | json |
| Description | Create a favourite |
URL | /api/favourites |
| HTTP Method | POST |
Security | Authentication required |
| Use Case | Example Request |
|---|---|
| Create a favourite on project Sonar (key = org.codehaus.sonar:sonar) for the user admin/admin |
|
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 |
| Use Case | Example Request |
|---|---|
| Delete the favourite flag on project Sonar (key = org.codehaus.sonar:sonar) for the user admin/admin |
|
Parameter | Description | Required | Default Value | Example Value |
|---|---|---|---|---|
key | id or key of the resource | Yes | None | org.codehaus.sonar:sonar |