Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide for connecting to APIs #23920

Merged
merged 11 commits into from
Aug 29, 2024

Conversation

jamiedemaria
Copy link
Contributor

@jamiedemaria jamiedemaria commented Aug 26, 2024

Summary & Motivation

Guide for connecting to APIs using resources. I tried to overcorrect toward terseness, but very likely that this doesn't have enough explanation. Let me know and I can add more.

How I Tested These Changes

Changelog [New | Bug | Docs]

NOCHANGELOG

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jamiedemaria and the rest of your teammates on Graphite Graphite

@jamiedemaria jamiedemaria marked this pull request as ready for review August 26, 2024 18:59
Copy link

github-actions bot commented Aug 26, 2024

Deploy preview for dagster-docs-beta ready!

✅ Preview
https://dagster-docs-beta-prqj9xs3p-elementl.vercel.app
https://jamie-doc-329-write-using-api-connections.dagster.dagster-docs.io

Built with commit 1e94b9d.
This pull request is being automatically deployed with vercel-action

@graphite-app graphite-app bot added the area: docs Related to documentation in general label Aug 26, 2024
Copy link

github-actions bot commented Aug 26, 2024

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-1rb85cqqe-elementl.vercel.app
https://jamie-doc-329-write-using-api-connections.dagster.dagster-docs.io

Direct link to changed pages:

docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
docs/docs-beta/docs/guides/external-systems/apis.md Outdated Show resolved Hide resolved
@jamiedemaria jamiedemaria force-pushed the jamie/doc-329-write-using-api-connections branch from b25a4f2 to 74d85dc Compare August 27, 2024 13:22
@jamiedemaria jamiedemaria changed the title Guide for connection to APIs Guide for connecting to APIs Aug 27, 2024
@jamiedemaria jamiedemaria force-pushed the jamie/doc-329-write-using-api-connections branch from 74d85dc to 26354b8 Compare August 27, 2024 20:33
@jamiedemaria jamiedemaria force-pushed the jamie/doc-329-write-using-api-connections branch from 26354b8 to 9593f31 Compare August 28, 2024 13:55
Copy link
Contributor

@erinkcochran87 erinkcochran87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nicely done 👌

@jamiedemaria
Copy link
Contributor Author

@benpankow can i get a review for the technical content? it should be quick since it's a relatively straightforward guide

@jamiedemaria jamiedemaria force-pushed the jamie/doc-329-write-using-api-connections branch from fe13e09 to 1e94b9d Compare August 28, 2024 19:53
@jamiedemaria jamiedemaria merged commit bd31eed into master Aug 29, 2024
3 checks passed
@jamiedemaria jamiedemaria deleted the jamie/doc-329-write-using-api-connections branch August 29, 2024 20:58
---

When building a data pipeline, you'll likely need to connect to several external APIs, each with its own specific configuration and behavior. This guide demonstrates how to standardize your API connections and customize their configuration using Dagster resources.
Copy link
Member

@schrockn schrockn Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamiedemaria This is great.

@erinkcochran87 @PedramNavid curious what you think in terms of in scope for a "how-to" guide. I just want it to be clear the resources are opt-in for this use case.

I think we should include (abridged) language about when it is good to use resources. E.g:


Accessing an API through a Dagster resource is useful if you want to:

  • Parameterize how to access the service at runtime (either through API or UI) via config.
  • Surface that configuration in Dagster.
  • Centralize configuration and implementation of this API access.
  • Plug in different implementations of resources in different environments (local dev versus production, for example).

If you don't want any of these features, you should just invoke the external service directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Related to documentation in general docathon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants