You can make the following GET requests
- /file/sample.html -- returns the content of the file sample.html
- /json -- returns a json of the /random request
- /random -- returns index.html
- /multiply -- multiplies two integers. Example: /multiply?num1=3&num2=4
- /github -- returns repository information from the GitHub API. Example: /github?query=users/amehlhase316/repos
Custom Requests
To test a custom request, add the example request to the end of your localhost or server URL.
- /temperature -- converts a temperature between Fahrenheit and Celsius. Example: /temperature?value=75&type=fahrenheitToCelsius
- /bmi -- calculates BMI using weight in pounds and height in inches. Example: /bmi?weight=180&height=70
File Structure in www (you can use /file/www/FILENAME):