Skip to main content

getSituationServices

A MoogDb v2 method that returns a list of service names for a Situation, and the primary service name, if defined.

Back to MoogDb V2 API Method Reference.

Request arguments

Method getSituationServices takes the following request arguments:

Name

Type

Required

Description

situationId

Number

Yes

Situation ID.

Response

Method getSituationServices returns the following response:

Type

Description

Native Object

A JSON array containing the service names, and the Situation's primary service, if defined.

Examples

The following examples demonstrate typical use of method getSituationServices:

Response example

Example response returning the services and the primary service for a Situation:

{ 
    "services": ["Service1","Service2"],
    "primary": "Service1"
}