Skip to content

Commit 27e5293

Browse files
authored
Merge pull request #18 from PhilT/add-patch-http-method
Add PATCH HTTP method
2 parents 82eb30e + 88fe832 commit 27e5293

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/jsonapi_spec_helpers/helpers.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ def jsonapi_put(url, payload)
9292
put url, params: payload.to_json, headers: jsonapi_headers
9393
end
9494

95+
def jsonapi_patch(url, payload)
96+
patch url, params: payload.to_json, headers: jsonapi_headers
97+
end
98+
9599
def jsonapi_delete(url)
96100
delete url, headers: jsonapi_headers
97101
end

0 commit comments

Comments
 (0)