Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ezard19925y@C0D4 that's exactly how I set it up, but most other developers seem to get confused and attempt to use the other option 🤔
-
restful best practise
https://restfulapi.net/resource-nam...
also RFC Standard
https://tools.ietf.org/html/rfc3986 -
C0D4681385y@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 🤷♂️
Related Rants
api.staging.example.com or staging.api.example.com?
rant
question