9
Ezard
78d

api.staging.example.com or staging.api.example.com?

Comments
  • 9
    What.where.owner.com

    Api.Staging.example.com
  • 2
    @C0D4 that's exactly how I set it up, but most other developers seem to get confused and attempt to use the other option 🤔
  • 5
    Descending specificity.
    api.staging.domain.tld
  • 1
    I'm not aware of any naming standards in such case, but staging.api.example.com tells me, that there will be (production) api.example.com at some point while api.staging.example.com suggest some sort of staging environment where api is being, well, staged.
  • 3
  • 3
    @norman70688
    Typically I work with APIs that are:

    api.prod.xyz.com
    api.staging.xyz.com
    api.dev.xyz.com

    This gives a clear and precise understanding of which environment you are about to hit/send data too.

    as for naming conventions, I doubt there's any written law for subdomians being used as routing, even @heyheni's two links don't include anything outside of just api.example.com 🤷‍♂️
Your Job Suck?
Get a Better Job
Add Comment