Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Patch requests - #21

Merged
jaimeiniesta merged 3 commits into
developfrom
patch-requests
Sep 16, 2019
Merged

Patch requests#21
jaimeiniesta merged 3 commits into
developfrom
patch-requests

Conversation

@jaimeiniesta

Copy link
Copy Markdown
Contributor

Adds support for PATCH requests, needed to update jobs:

https://stuart.api-docs.io/v2/jobs/update-a-job

@seanhandleyseanhandley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Not sure about the hardcoding of values in the specs, though. In RSpec I'd use a let for these, but perhaps here they could be module attributes? Or maybe even something else? WDYT?

#####################

defp response(:get, "https://sandbox-api.stuart.com/timeout") do
defp response(_, "https://sandbox-api.stuart.com/timeout") do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The sandbox URL seems like a good candidate for a module attribute.

@jaimeiniesta
jaimeiniesta merged commit 248497c into developSep 16, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jaimeiniesta@seanhandley