Skip to content

DekiChan/msisdninfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSISDN-INFO

Description

Dockerized Go based microservice that returns basic info about a given MSISDN

Installation

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

Usage

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"
}

About

Implementation of msisdn-info in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages