12 Supported Endpoints
RESTServer supports the following request:
-
GET Location
https://hostname:port/LocationInfo/{service-number}
GET Location
To request a Location, use cURL to send an HTTP/HTTPS request to the REST location
endpoint.
curl -i
-H "Authorization: Bearer "
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://hostname:port/LocationInfo/{service-number}Supported Method: GET
Request
Path Parameter
- service-number(required): string
There's no request body for this operation.
Response
Supported Media Types: application/json
-
200 Response
Success
-
400 Response
The request isn't valid.
-
500 Response
An internal server error occurred.
Examples
Request:
curl -X -H "Authorization: Bearer accessToken"
GET 'http://hostname:port/LocationInfo/257531'Response:
Success Case:
{
"Location": "52121005DC03EA"
}
Error Case:
{
"error": "Unable to get subscriber Location"
}
Note:
Decoding Location: 52121005DC03EA
- MCC = 521
- MNC = 210
- LAC = 05DC
- CID = 03EA