guardian / gateway

🕵️🆔👤The platform for authentication at (profile.)theguardian.com
https://profile.theguardian.com
12 stars 1 forks source link

Docs | Update hoppscotch collection to add script #2856

Closed coldlink closed 2 months ago

coldlink commented 2 months ago

What does this change?

After reading @AshCorr's (https://github.com/guardian/gateway/pull/2855#discussion_r1718437474), I looked into adding a script to Hoppscotch that would automatically update the variables.

It turns out this is possible.. if I add it to the "Tests" scripts, which is a script that runs after the response has been received.

I added two scripts

This should make Hoppscotch easier to work with!

The variables that can't be automatically updated are:

These will still have to be updated manually.

github-actions[bot] commented 2 months ago

Deploy build 9816 of identity:identity-gateway to CODE

All deployment options - [Deploy build 9816 of `identity:identity-gateway` to CODE](https://riffraff.gutools.co.uk/deployment/deployAgain?project=identity%3Aidentity-gateway&build=9816&stage=CODE&updateStrategy=MostlyHarmless&action=deploy) - [Deploy parts of build 9816 to CODE by previewing it first](https://riffraff.gutools.co.uk/preview/yaml?project=identity%3Aidentity-gateway&build=9816&stage=CODE&updateStrategy=MostlyHarmless) - [What's on CODE right now?](https://riffraff.gutools.co.uk/deployment/history?projectName=identity%3Aidentity-gateway&stage=CODE)

From guardian/actions-riff-raff.