API Interview question
Loading
API Interview question
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Jan 24, 2023, 4:03 AM
A URI — short for “Uniform Resource Identifier” — is a sequence of characters that distinguishes one resource from another.
For example, foo://example.com:8042/over/there?name=ferret#nose is a URI containing a scheme name, authority, path, query and fragment. A URI does not need to contain all these components. All it needs is a scheme name and a file path, which can be empty.
A URL — short for “Uniform Resource Locator” — is a specific type of identifier that not only identifies the resource but tells you how to access it or where it’s located.
For example, a URL might contain ftp:// or https://. This tells you that the resource can be located and accessed via File Transfer Protocol (FTP) or Hypertext Transfer Protocol Secure (HTTPS).
For more details please check the below links.
https://www.javatpoint.com/uri-vs-url
https://www.geeksforgeeks.org/difference-between-url-and-uri/
https://blog.hubspot.com/website/uri-vs-url
ChatGPT:
Rajeev KumarPosted Mar 3, 2023, 6:39 AM
A Uniform Resource Identifier referring to the resources on the internet is a string identifier, following the syntax rule, thus confirming uniformity. It consists of a string of characters used to identify the resource on the internet with the help of name and / or location (place). An internet resource specifying the URN scheme, this enables a uniform identification of the resources. URI can describe both the URL and the URN. It contains the scheme, authority, path, query, and a fragment. HTTP, HTTPs, ftp, Idap, telnet are all URI Schemes.
URL is a Uniform Resource Locator that denotes the specific location on the computer network and also the technique for retrieving it. A URL is the unique resource, which can be a CSS document or an HTML webpage. HTTP, HTTPS, FTP are the protocols used with the URLs to access the resources. It also indicates the address of a webpage that we type into the space bar.
Naimish MakwanaPosted Jan 24, 2023, 3:20 AM
URL is a string of characters that not only identifies the resource located on the Internet but also gives the mechanism to reach the location and retrieve the data. Example: https://www.google.com
URL scheme is a protocol, such as HTTP and HTTPS.
VS
URI is a string of characters that identifies a resource on the web by its name, address/location, or both. Example of a URI is ISBN 0-476-35557-4.
URI scheme can be a protocol, a specification, or a designation like HTTP, file, or data.
Sam HobbsPosted Jan 23, 2023, 10:57 PM
If you can understand the actual standard definition then look at the following. These are not easy to understand but if you understand all this then you will certainly impresss people, right?
RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
https://www.rfc-editor.org/rfc/rfc3986
RFC 1738: Uniform Resource Locators (URL)
https://www.rfc-editor.org/rfc/rfc1738
RFC 1808: Relative Uniform Resource Locators
https://www.rfc-editor.org/rfc/rfc1808
And those documents reference other documehnts of course.
Rajeesh MenothPosted Jan 23, 2023, 4:55 PM
Hi,
The URI can represent both the URL and the URN of a resource, simultaneously, while the URL can only specify the address of the resource on the internet.
Jignesh KumarPosted Jan 23, 2023, 12:25 PM
Hello Pavan,
Please refer this one which will help you to undestand,
https://www.tutorialspoint.com/difference-between-url-and-uri
Alkesh BijarniyaPosted Jan 23, 2023, 12:16 PM
Hi Pavan,
https://www.geeksforgeeks.org/difference-between-url-and-uri/
Aravind GovindarajPosted Jan 23, 2023, 10:55 AM
Typically URL means www.google.com/image.jpg and URI means public://image.jpg
please refer to this link to get more insight
https://techdifferences.com/difference-between-url-and-uri.html
Vijay Pratap SinghPosted Jan 23, 2023, 10:43 AM
A URI or Uniform Resource Identifier is a string identifier that refers to a resource on the internet. It is a string of characters that is used to identify any resource on the internet using location, name, or both.
A URI has two subsets; URL (Uniform Resource Locator) and URN (Uniform Resource Number). If it contains only a name, it means it is not a URL. Instead of directly URI, we mostly see the URL and URN in the real world.
Ex:mailto:[email protected]
A URL or Uniform Resource Locator is used to find the location of the resource on the web. It is a reference for a resource and a way to access that resource. A URL always shows a unique resource, and it can be an HTML page, a CSS document, an image, etc.
A URL uses a protocol for accessing the resource, which can be HTTP, HTTPS, FTP, etc.
Sachin SinghPosted Jan 23, 2023, 10:15 AM
for better understanding follow this
https://blog.hubspot.com/website/uri-vs-url