Skip to content

A general code assignment to implement an API that generates phone numbers from 1111111111 to 9999999999.

Notifications You must be signed in to change notification settings

pranjalnadhani/allot-phone-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AllotPhoneNumbers

An API to allot phone numbers.

How to start the AllotPhoneNumbers application

  1. Run mvn clean install to build your application
  2. Start application with java -jar target/AllotPhoneNumbers-1.0.jar server config.yml
  3. To check that your application is running enter url http://localhost:8080

APIs to obtain phone numbers

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.

About

A general code assignment to implement an API that generates phone numbers from 1111111111 to 9999999999.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages