Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 75 forks source link

Add x-api-key to search call #315

Closed mbifulco closed 4 years ago

mbifulco commented 4 years ago

Describe your PR

This PR adds an x-api-key parameter to our calls to the search endpoint

Fixes #311

Pages/Interfaces that will change

/businesses search page

Screenshots / video of changes

This will appear in the network tab of your browser dev tools when you execute a search (highlighted here). I'll need confirmation from @elchris that this is what we're looking for, since the API changes aren't deployed yet. image

Steps to test

  1. @elchris help! :)

Additional notes

mbifulco commented 4 years ago

@elchris I'm going through the checklist in #311 to get this done, and I see reference to a staging environment... do we have/use a staging environment? I don't recall ever using one for the website.

If we don't, this is ready to merge - the correspomding API key is on netlify for the production environment

magnificode commented 4 years ago

@mbifulco feel free to add an issue for the react-query stuff. That seems like a great addition!