Endpoint 01
list-msisdns
TMF639 v5 listResource. Returns a schema-valid array of available LogicalResource MSISDNs honouring query.limit.
- Status
- 200
- Priority
- 0
- Paths
- 3
Bound paths
-
GET
msisdn-repository.tmfmock.com/resource -
GET
msisdn-repository.tmfmock.com/tmf639/listResource -
GET
msisdn-repository.tmfmock.com/tmf-api/resourceInventoryManagement/v5/resource
Request conditions
DefaultEvery request matching a bound method and path uses this rule.
Bound response rule
JSON formula{
"body": {
"$repeat": {
"max": 100,
"min": 1,
"count": {
"$var": "limit"
},
"template": {
"id": {
"$random": "uuid"
},
"href": {
"$concat": [
{
"$request": "origin"
},
"/resource/",
{
"$random": "uuid"
}
]
},
"name": "MSISDN",
"@type": "LogicalResource",
"value": {
"$random": {
"type": "msisdn",
"countryCode": "+48",
"nationalLength": 9
}
},
"category": "MSISDN",
"resourceStatus": "available",
"allocationStatus": "available"
}
}
},
"status": 200,
"headers": {
"Content-Type": "application/json; charset=utf-8"
},
"variables": {
"limit": {
"$request": {
"max": 100,
"min": 1,
"path": "query.limit",
"type": "integer",
"default": 10
}
}
}
}