Created
October 21, 2020 10:32
-
-
Save ahmad19/594022150dc3a21df7e0ef6f3cc9bf87 to your computer and use it in GitHub Desktop.
Put request with correct headers and params in order to send array as parameters in request body.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
put( | |
"/admin/prizes.json", | |
headers: { 'CONTENT_TYPE' => 'application/json; charset=UTF-8' }, | |
params: { prizes: [] }.to_json | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment