Permalink
Browse files

documentation

  • Loading branch information...
jms committed May 19, 2016
1 parent 09a5e56 commit 7e4c9ded7395e63bc7cb219b7c2d903b770991f2
Showing with 39 additions and 0 deletions.
  1. +35 −0 README.md
  2. +4 −0 test_data.json
@@ -1,2 +1,37 @@
# check-phone-number-service
microservice to check phone numbers using libphonenumber and the python port python-phonenumbers
Test data
```json
{
"phone_number": "+40721234567",
"country_code": "RO"
}
```
Run the service:
```bash
$ python main.py
```
Testing using httpie:
```bash
$ http POST localhost:8080/check-phone < test_data.json
```
```bash
HTTP/1.0 200 OK
Content-Length: 137
Content-Type: application/json
Date: Thu, 19 May 2016 23:53:32 GMT
Server: WSGIServer/0.1 Python/2.7.10
{
"carrier_data": "Vodafone",
"number_data": "Country Code: 40 National Number: 721234567",
"possible_number": true,
"valid_number": true
}
```
@@ -0,0 +1,4 @@
{
"phone_number": "+40721234567",
"country_code": "RO"
}

0 comments on commit 7e4c9de

Please sign in to comment.