Module 1.5 - What is a URL Flashcards
What is a URL?
A URL (Uniform Resource Locator) is a string of text that specifies the location of a resource on the internet.
What are the parts of a URL?
A URL is composed of the protocol, the server address (domain name or IP), and the path of the document on the server.
What is the purpose of the protocol in a URL?
The protocol in a URL determines the type of communication that should be used to access the resource. For example, HTTP or HTTPS.
What is the server address in a URL?
The server address in a URL is either a domain name or an IP address that points to the location of the resource on the internet.
What is the document path in a URL?
The document path in a URL represents the specific location of the resource within the server’s root path.
What’s the difference between a document path and and endpoint in a URL?
A document path in a URL refers to the location of a specific file or resource on the web server. It’s the part of the URL that comes after the domain name and specifies the location of a specific page, file, or resource on the server.
An endpoint, on the other hand, is a unique URL for an API or web service that specifies the location of a specific resource or operation that the API can perform. Endpoints are typically used for sending and receiving data from an API, whereas document paths are used for accessing static content on a web server.
In other words, a document path refers to a static resource, while an endpoint refers to a dynamic resource or operation.