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?num1=NUMBER&num2=NUMBER -- multiplies the two numbers and returns the result
- /github?query=users/USERNAME/repos -- fetches a user's public GitHub repositories and returns each one's full name, ID, and owner. Example: /github?query=users/kgary/repos
- /orderid?id=ORDERID&format=int OR masked -- takes an Amazon-style order ID (17 digits, formatted as XXX-XXXXXXX-XXXXXXX) and either strips the dashes (format=int) or validates and reformats it with dashes (format=masked). Example: /orderid?id=112-4738291-5047863&format=int
- /weightconvert?weight=WEIGHT&direction=toimperial OR todecimal -- converts a shipping weight between decimal pounds and pounds/ounces format. For toimperial, weight is a decimal (e.g. 1.51). For todecimal, weight is formatted as POUNDS-OUNCES (e.g. 1-9). Example: /weightconvert?weight=1.51&direction=toimperial
File Structure in www (you can use /file/www/FILENAME):