[Tutorial] Create Restful Web Server using Google "libphonenumber" API
Create Restful Web Server using Google "libphonenumber" API Brief Introduction: This is a simple tutorial for creating a Restful web server by using Java. The web server accept a string from URL and return phone numbers which are found in the string by using GET method. It also accept a file and return phone numbers from file by using POST method. All phone numbers will be shown in JSON format. The final result is shown below: GET: http://localhost:8080/libnumber/api/phonenumbers/parse/text/Seneca%20Phone%20Number%3A%20416-491-5050 POST: http://localhost:8080/libnumber/api/phonenumbers/parse/file Here's data in file: Preparation: 1. Set up Java environment. 2. Download and install Eclipse Java EE. Click HERE to download the installator and select Java EE when install. 3. Download JAX-RS package. 4. Download Apache Tomcat. 5. Download Google "libphonenumber" API HERE . Creating a Java project: 1. Open Eclipse, select a ...