Skip to content

URI

Uniform Resource Identifier

Medium — good to knowNetworking

ELI5 — The Vibe Check

A URI is the general term for any identifier of a resource. URLs are URIs that tell you WHERE and HOW to get something. URNs are URIs that just name something. So URI is the parent concept, URL and URN are specific types. Think: every URL is a URI, but not vice versa.

Real Talk

A URI is a string of characters that uniquely identifies a resource. The two main types are URLs (which include location/access method) and URNs (which name a resource without implying how to access it). In REST APIs, URIs identify resources like /users/123.

Show Me The Code

// Examples of URIs
https://example.com/api/users    // URL (location + protocol)
urn:isbn:978-3-16-148410-0       // URN (name, no location)
mailto:user@example.com          // URI (email resource)
/api/v1/products/42              // Relative URI path

When You'll Hear This

"REST APIs use URIs to represent resources." / "A URI can be a URL or a URN depending on whether it specifies location."

Made with passive-aggressive love by manoga.digital. Powered by Claude.