An API to allot phone numbers.
- Run
mvn clean install
to build your application - Start application with
java -jar target/AllotPhoneNumbers-1.0.jar server config.yml
- To check that your application is running enter url
http://localhost:8080
The API endpoint to generate phone numbers is:
POST /api/allotnumber Request body:
{
"phone": 9876543210
}
P.S.: phone
is an optional field. You can leave it blank to get the number automatically generated for you. If you want a custom number for yourself, specify it in the request body as shown. If the custom number would be available, it would be generated for you, otherwise, you will receive an automatically generated number.