

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: URL Paths
incomplete
2: RESTful APIs
incomplete
3: URL Query Parameters
incomplete
4: The Documentation of an HTTP Server
incomplete
5: Multiple Query Parameters
incomplete
This lesson's interactive features are locked, please to keep using them
The URL Path comes right after the domain (or port if one is provided) in a URL string.
In this URL:
`http://testdomain.com/root/next`
The path is:
/root/next
Many static websites (websites where the content does not change, as opposed to dynamic web applications) use paths as a direct mapping to the path to the server's file system. For example, If I was running a static web server for "mystaticstate.com" from the root of my file system, a GET request to http://mystaticstate.com/documents/hello.txt would serve the file at /documents/hello.txt from my server.
Click to play video
Most dynamic web applications don't use this simple mapping of URL path -> file path. Technically, a URL path is just a string that the web server can do what it wants with, and modern websites take advantage of that flexibility. Some common examples of what paths are used for include:
Fix the getResources function. This is a flexible function that, given a path, makes a GET request to the Jello server and returns the response body. Update the fullURL string so that it's the base URL, in our case https://api.boot.dev, concatenated with the given path.