Dockerized Go based microservice that returns basic info about a given MSISDN
You will need composer installed. Then clone the repo:
git clone https://github.com/DekiChan/msisdninfo.git
Now all it remains is to run the application with Docker. Make sure you have it installed. Then in the root directory of the project just run:
docker-compose up
The application url will be http://localhost:8080
Send a GET request to the service in the following format:
http://localhost:8080/transform?msisdn=<MSISDN>
Response format is JSON with the following fields:
{
"mno_identifier": "string", // network operator name
"country_code": integer, // country calling code (e.g. 386 in case of Slovenian number)
"country_identifier": "string", // ISO 3166-1-alpha-2 formatted
"subscriber_number": "string" // number without country and operator codes
}
In case of error response JSON will contain 'message' property with error explanation.
{
"Message": "string"
}