On static sites (like blogs or documentation sites) a URL's path mirrors the server's filesystem hierarchy.
For example, if the website https://exampleblog.com
had a static web server running in its /home
directory, then a request to https://exampleblog.com/site/index.html
would probably return the file located at /home/site/index.html
.
But technically, this is just a convention. The server could be configured to return any file or data given that path.
Paths in URLs are essentially just another type of parameter that can be passed to the server when making a request. For dynamic sites and web applications, the path is often used to denote a specific resource or endpoint.
The fantasy quest server uses URL paths to denote different "resources". For example,
/issues
/projects
The entire server is hosted at the path /v1/courses_rest_api/learn-http
, however, so all requests must be prefixed with that path.
Update the URL in the code to fetch "project" data instead of "user" data.
Use the /v1/courses_rest_api/learn-http/projects
path.
Focus Editor
Alt+Shift+]
Next Tab
Alt+Shift+[
Login to Submit
Login to Run
Login to view solution