Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.06k stars 471 forks source link

Add the ability to modify base URI for 1st party shopify apps #1235

Closed nelsonwittwer closed 11 months ago

nelsonwittwer commented 1 year ago

For 1st party Shopify apps that use the API library, adding the ability to use the internal domain vs public domain can reduce latency by 80ms by avoiding the public internet for API calls.

If we modified the base_uri in our http client, we'd need to make sure the session's shop worked well with unified admin domains and legacy patterns. We'd need to validate this change by testing with 3rd party and 1st party applications before releasing.

brendo commented 11 months ago

Available in 13.3.0 via the api_host option.