Questions tagged [rest-client]

REST Client is an open-source HTTP and REST client for Ruby.

REST Client is an open-source HTTP and REST client for Ruby originally created by Adam Wiggins and now maintained by Andy Brody. It was inspired by Sinatra's micro-framework style of specifying actions: get, put, post, delete.

Github

The code repository and issue tracker can be found on github:

https://github.com/rest-client/rest-client

Resources

940 questions
3
votes
1 answer

VSCode REST Client Extension - Loop Request

I have the requirement to send nearly the same POST request to a backend system several times - say 50 times. Is there a way to put the below request into a loop? ### #POST Gamer POST {{hostURL}}/api/Gamer Content-Type: application/json { …
One Developer
  • 99
  • 5
  • 43
  • 103
3
votes
2 answers

Uploading excel file using rest client to a rest service leads to 400 Bad request

I have a rest service which is used to upload excel file It works fine from the UI, but I am trying to upload problematically using RestClient its giving 400 Bad request @RequestMapping(value="/{pb}/contents/{contentId}", method=RequestMethod.POST,…
Arvind
  • 1,207
  • 6
  • 27
  • 55
3
votes
0 answers

REST Client VS Code Extension POST with application/json doesn't recognize body

The title is pretty self explanatory. I'm using REST Client@0.23.2 by Huachao Mao (Visual Studio Code extension) and a POST request doesn't recognize the body I passed. By the way, the backend is spring boot with OAuth2. client.rest ### POST…
nop
  • 4,711
  • 6
  • 32
  • 93
3
votes
1 answer

How can I use a PEM certificate with password?

I'm having plenty of trouble trying to use a certificate that has a password on ruby. I'm using rest-client, but that's not a requirement. This is the cURL-equivalent of the call I need to make: curl -E certificate.pem:PASSWORD -d ident=language -d…
MarceloJ
  • 135
  • 1
  • 12
3
votes
1 answer

Multiline comments in http

I am using REST Client in VSCode. The file extension is http. Where we can comment using hash: #, double slash: // and separate requests with tripple hashes: ###. But how can we have multiline comments?
Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231
3
votes
1 answer

Binding nested elements in a standard JAXB2 POJO

I have the following document model structure. someValue someValue someValue someValue
user377067
  • 275
  • 2
  • 6
3
votes
1 answer

Spring boot Project folder structure for rest client

I am working on a Springboot project where i need to consume lot of rest APIs. The current project folder structure has a Controller, Model, Service, Dao and Util packages. -The Util package has a Scheduler, that calls the Service module. -The…
Shivani Bhansali
  • 109
  • 1
  • 12
3
votes
2 answers

how to delete a saved request in chrome's arc (Advanced REST Client) extension?

How to delete a saved request in chrome's ARC (Advanced REST Client) extension? I currently have ARC extension installed in chrome and some requests saved. I looked for, but didin't find any way to delete a request from the "saved" list. tried to…
Daniel Santos
  • 111
  • 1
  • 8
3
votes
1 answer

Escape and download URL using Ruby

I'm trying to download the HTML content from a URL without success. Here is the URL: http://example.com/some_string[value] When use RestClient I get this error: URI::InvalidURIError: bad URI(is not URI?) I got some help from the Ruby on Rails IRC.…
Linus Oleander
  • 17,746
  • 15
  • 69
  • 102
3
votes
1 answer

Rest-Client HK2 failure detected

Im developing a "ManageYourAnime/Manga/Movies/TvShows/Whatever"-Program. A friend had the idea/need and im now making it for him as it´s a good opportunity to learn things and produce something somewhat useful, to at the very least a single person…
Max
  • 31
  • 1
  • 5
3
votes
1 answer

How to call multiple client apis using HttpClient in .net and .net core

In my one of the .net core project I have to call REST apis to send some data to clients. There are always more than 9-10 clients with different apis having their own domain and custom headers. If I will create HttpClient object each time it will…
Rakesh
  • 71
  • 1
  • 6
3
votes
0 answers

Post Request from client With Proper Headers Always return 401- UnAuthorized

Am a newbie to ruby. I am trying to invoke a REST API from ruby code. I have tried the code with both as standalone ruby code and inside a application using sinatra. But am facing same issue every where. Below are the options I have tried. My Code…
balaaagi
  • 502
  • 11
  • 21
3
votes
2 answers

how to get ticket details of multiple ticket IDs through OTRS REST URL

Currently i used this URL for single ticket ID: http:///otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/2020?UserLogin=abc&Password=abc123&DynamicFields=1 How can i pass multiple ticket IDs into this URL..
im_mangesh
  • 177
  • 1
  • 1
  • 13
3
votes
1 answer

Ruby RestClient GET request with payload

Please help me with the following: I have a number of application and associated records. app with id 1 has: record1, record2 and record3. app with id 2 has: record1 ... record1000 To filter out records for app 1 Im using curl. I can get records…
Andriy
  • 94
  • 1
  • 9
3
votes
3 answers

unable to install restclient gem

i want to install restclient in ruby. I get these message: Building native extensions. This could take a while... ERROR: Error installing rest-client: ERROR: Failed to build gem native extension. current directory:…
r.az91
  • 41
  • 1
  • 4