Configured system

charging

Charging platform mock. TMF640 v4 service activation and configuration.

charging.tmfmock.com

Aliases service-activation charging-platform tmf640

Database-configured Runtime-routed Contract-shaped
System catalogue
Host charging.tmfmock.com
Loaded from live configurationDB
1active endpoint
3bound paths
3configured aliases
DBlive configuration
Endpoint index

Endpoints on the wire

Loaded from the same database configuration used to dispatch mock requests.

MethodPrimary routeEndpointStatus
POST charging.tmfmock.com/service provision-charging-service 201
Live configuration

Endpoints and bound rules

Every active method, path, request condition, and response formula currently bound to this system.

Endpoint 01

provision-charging-service

TMF640 v4 createService. Activates the charging service or profile and returns it in state active.

Status
201
Priority
0
Paths
3

Bound paths

  • POST charging.tmfmock.com/service
  • POST charging.tmfmock.com/tmf640/createService
  • POST charging.tmfmock.com/tmf-api/serviceActivationAndConfiguration/v4/service

Request conditions

Default

Every request matching a bound method and path uses this rule.

Bound response rule

JSON formula
{
  "body": {
    "id": {
      "$var": "serviceId"
    },
    "href": {
      "$concat": [
        {
          "$request": "origin"
        },
        "/service/",
        {
          "$var": "serviceId"
        }
      ]
    },
    "name": {
      "$request": {
        "path": "body.name",
        "default": "Mock charging service"
      }
    },
    "@type": "Service",
    "state": "active",
    "category": "charging",
    "serviceType": {
      "$request": {
        "path": "body.serviceType",
        "default": "charging"
      }
    },
    "isServiceEnabled": true,
    "serviceCharacteristic": [
      {
        "name": "chargingProfile",
        "@type": "StringCharacteristic",
        "value": {
          "$request": {
            "path": "body.serviceCharacteristic.0.value",
            "default": "MOCK-CHARGING-PROFILE"
          }
        },
        "valueType": "string"
      }
    ]
  },
  "status": 201,
  "headers": {
    "Location": {
      "$concat": [
        {
          "$request": "origin"
        },
        "/service/",
        {
          "$var": "serviceId"
        }
      ]
    },
    "Content-Type": "application/json; charset=utf-8"
  },
  "variables": {
    "serviceId": {
      "$request": {
        "path": "headers.idempotency-key",
        "default": {
          "$random": "uuid"
        }
      }
    }
  }
}
Incoming traffic

Requests and responses

Waiting for traffic

No requests captured yet.