9
Ezard
6y

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
  • 3
  • 2
    @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 🤷‍♂️
Add Comment