Skip to content

Keptn Service

This is a template for a Keptn service. You can find more info about Keptn services in the Keptn docs.

Routes

GET /project/:endpoint/:name

This route is used to get the project with the given name.

  • endpointName: the name of the endpoint
  • name: it the name of the project on Keptn

Example

/project/keptn/krateo-prj

POST /trigger/:endpoint/:name

Example

/trigger/keptn/krateo-prj
{
  "contenttype": "application/json",
  "type": "`sh.keptn.event.stage.sequence.triggered`",
  "source": "bridge",
  "data": {
    "project": "project",
    "stage": "stage",
    "service": "service"
  }
}

Response

{ "message": "Event triggered" }

Note

Services respond with valid JSON, so, if the response is an array, it will be wrapped in the list property.

If the response contains the list proerty it will add the property count with the number of items in the list.