Skip to content

Commit

Permalink
delete with body
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanth-sams committed Jan 6, 2020
1 parent f8e3587 commit 87a8c31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,17 @@ it "PATCH request" do
expect(api.status).to eq(200)
end

# For exceptional cases with body in the GET request
# For exceptional cases with body in the GET/DELETE request
it "GET request with JSON body" do
api.get_with_body('/api/users', { "count": 2 })
expect(api.status).to eq(200)
end

it "DELETE request with JSON body" do
api.delete_with_body('/api/users', { "count": 2 })
expect(api.status).to eq(200)
end

# Customize URL query string as a filter
it "Custom URL query string" do
api.get(
Expand Down

0 comments on commit 87a8c31

Please sign in to comment.