revelrylabs / prodops_ex

The Elixir SDK for ProdOps
MIT License
0 stars 0 forks source link

Simplify SDK API #37

Closed estreeper closed 4 months ago

estreeper commented 4 months ago

Links to #31

Note: it will be easier to review this after #35 gets merged in because this was built off of those changes

This is to simplify our API (not to be confused with the ProdOps API) that we're exposing to users. The attempt is to:

As an example, before this was:

ProdopsEx.Artifact.get_artifacts_for_project(%{artifact_slug: "story", project_id: 1})

Now it looks like:

ProdopsEx.Artifact.list_project_artifacts(1, "story")