GoPuff::ProdcatApi
This Rails library is designed to work with product-catalog/pds api
Installation
Add this line to your application's Gemfile:
source 'https://rubygems.pkg.github.com/gopuff' do
gem 'go_puff-prodcat_api'
end
And then execute:
$ bundle install
Set up
GoPuff::ProdcatApi.configure do |c|
c.logger = GoPuff::Logger
c.url = ENV.fetch('PDS_API_URL')
c.authorization_client_id = ENV.fetch('PRODCAT_API_AUTHORIZATION_CLIENT_ID')
c.user_agent_header = GoPuff::Http.config.user_agent_header
end
Local development with docker
Authorize personal access token for Github by following the steps at https://docs.github.com/en/github/authenticating-to-github/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on
cp .bundle/config.example .bundle/config
Add Github username and personal access token in ./bundle/config
and start project using:
docker-compose run --rm go_puff-prodcat_api bash
or with dip
dip bash
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Clone the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request