Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DescriptionCreate an event

URL

/api/events

MethodPOST
 Security

Requires Project Administrator role

...

  1. Create an event on project Sonar (key = org.apachecodehaus.strutssonar:struts sonar) with administrator admin/admin:
    • Category: Alert
    • Name: myAlertName
    • Description: myAlertDescription
       

      Code Block
      languagenone
      curl -u admin:admin -d "resource=org.apachecodehaus.strutssonar:strutssonar&category=Alert&name=myAlertName&description=myAlertDescription" http://localhost:9000/api/events

...

Parameter

Description

Required

Default Value

Value

resource

id or key of the project

?Yes

 None

org.codehaus.sonar:sonar

categoryCategory

Event category

?Yes

 None

Version
Alert 

name 

Event name

 Yes None 

description 

Event description

 No None 
Autres paramètres ???    
Note
To be reviewed and completed