DEV Community

Discussion on: Those silly mistakes we all make

Collapse
 
rubiin profile image
Rubin • Edited

Most of the time what I do is change something on the local api and query the hosted api for the changes via postman. Will go like this for about 5 minutes restarting and console logging the code until my sight gets the glimpse of the url in postman . Silly me

Collapse
 
philnash profile image
Phil Nash

Ouch. And you can't even place a visual banner to say it's dev/staging when it's an API request.

Collapse
 
phlash profile image
Phil Ashby

Late reply - but a thought occurred to me - what about a response header 'X-Environment: test/dev/prod', that might help when staring at Postman for the umpteenth time?

Thread Thread
 
philnash profile image
Phil Nash

Might help! Though I know I would likely be looking at the body of the response rather than the headers. Sometimes there’s just no guard against ourselves πŸ˜„

Thread Thread
 
phlash profile image
Phil Ashby

Well well...
github.com/postmanlabs/postman-app...

still open :(

Thread Thread
 
philnash profile image
Phil Nash

That's a good idea though. Maybe it will get enough support.