We've moved discussions to Discord

External API Integrations

Matt Bjornson
I understand that the existing API functionality covers exposing my services to others, but what about external APIs that I want to pull in their data into my app? What if I wanted to integrate with Jira and get a list of projects and todos from there? Could I leverage some of the existing API functionality of jumpstart and build this on?


May be more a GoRails episode...
Chris Oliver
Matt Bjornson consuming an API would be as simple as finding a gem for the API (or building writing your own code). For Jira, I found this: https://github.com/sumoheavy/jira-ruby

Jumpstart Pro's API feature is all about exposing an API for other people to consume of your app. It's usually the more confusing part trying to determine how to handle authentication, etc so I thought it would be good to have built-in.
Matt Bjornson
Chris Oliver  I've been looking at gems where possible. Where I was potentially thinking of overlap would be on the API keys needed by user/account that you store in Jump Start, but given that I'm new, I could be wrong on that too. Thanks again!
Chris Oliver
If they're hardcoded API keys, you can just toss any API keys you need in credentials and access them with Rails.application.credentials.jira_api_key. https://edgeguides.rubyonrails.org/security.html#custom-credentials

If they're for each user, use Omniauth with Devise and Jumpstart Pro will store them as a User::ConnectedAccount record. Just have to add them to Devise in config/initializers/devise.rb
Notifications
You’re not receiving notifications from this thread.