Elektrine lite

← Feed

@tarsius@fosstodon.org

2026-05-06 09:13 UTC

Is there a commonly used term for "hostname[/pathname]" (e.g., "codeberg.org/api/v1" and "api.github.com")? I have a bunch of functions that receive such strings as arguments, and so far I called these arguments "host" and was forced to add documentation explaining that that in some cases also includes a pathname component.

Replies (4)

  • @stsquad@mastodon.org.uk 2026-05-06 09:21

    @tarsius@fosstodon.org aren't they just API endpoints?

    Open ##5255275

  • @charliemac@mastodon.social 2026-05-06 10:28

    @tarsius@fosstodon.org Are these the URIs other requests are built from? If so, I've seen them referred to as "Base URI" or "API root URI," the former being more common.

    Open ##5255279

  • @tko@mastodon.social 2026-05-06 12:17

    @tarsius@fosstodon.org if it included scheme I'd call it "base url" or so.. without the scheme "hostpath" could be close, if it didn't completely ignore port. 🤷

    Open ##5255282

  • @tarsius@fosstodon.org FWIW, Jekyll uses "url" and "base_url": https://mademistakes.com/mastering-jekyll/site-url-baseurl/

    Open ##5255283