...
Parameter | Description | Required | Default Value |
|---|---|---|---|
| format | Response formats: xml or json | No | xml |
Create a Favourite
| Description | Create a favourite |
URL | /api/favourites |
| Method | POST |
Security | Authentication required |
Examples
Create a favourite on resource resourceToFlag project Sonar (key = org.codehaus.sonar:sonar) for the user admin/admin:
Code Block language none curl -u admin:admin -d "key=resourceToFlagorg.codehaus.sonar:sonar" http://localhost:9000/api/favourites
...
Parameter | Description | Required | Default Value | Value |
|---|---|---|---|---|
key | id or key of the resource | Yes | None | org.codehaus.sonar:sonar |
Delete a Favourite
| Description | Delete a favourite |
URL | /api/favourites/:key |
| Method | DELETE |
Security | Authentication required |
Examples
Delete the favourite flag on resource resourceToUnflag 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
Parameters
Parameter | Description | Required | Default Value | Value |
|---|---|---|---|---|
key | id or key of the resource | Yes | None | org.codehaus.sonar:sonar |

