rest-client Questions

7

Solved

I have an API endpoint and an Authorization token for that API. The said API is for .xls report download. How can I view the downloaded .xls file using (if possible) Postman? If it is not possible ...
Stegall asked 16/8, 2016 at 13:2

3

Solved

TL;DR How can I set the Content-Type headers for each individual file/input/text in a multipart/form-data request (in Insomnia)? I'm trying to POST to the OneNote API (HTTP description) using the ...
Orran asked 31/7, 2017 at 22:7

3

I am currently using a YAML file to generate the models and the API clients using the swagger plugin and I am using Feign OkHttpClient to make requests to the API, the problem here is the client en...
Scarf asked 31/10, 2018 at 19:7

7

Solved

I am using Ruby on Rails 4. I am trying to require 'rest-client' in my controller so that I can parse the login information I am getting from a form and send it to an API. I can verify that th...
Squiggle asked 31/7, 2013 at 14:56

3

Solved

Anybody aware of default timeout value of RestSharp RestClient ?
Hawkshaw asked 3/3, 2015 at 10:32

2

I am developing application, which uses microprofile rest client. And that rest client should send REST request with various http header. Some headers names changes dynamically. My microprofile res...
Theotokos asked 8/6, 2019 at 18:0

2

The documentation for the VSCode Rest Client is lacking good explinations. Here is what they give as an example. POST https://api.example.com/user/upload Content-Type: multipart/form-data; boundar...
Assurbanipal asked 28/4, 2020 at 6:29

4

Solved

I was trying to set headers to my rest client but every time I have to write webclient.get().uri("blah-blah") .header("key1", "value1") .header("key2", "value2")... How can I set all headers ...

6

I recently switched from Ruby's Net:HTTP class to rest-client 1.6.7. I find it a lot easier to form requests, but unlike Net:HTTP request, when rest-client gets anything other than a 200, the requ...
Crowbar asked 10/7, 2012 at 22:38

1

Solved

I have a post API call, which allows me to upload multiple images within form-data parameter in Postman. As you can see below, I'm sending multiple images having the key images I wanna implement t...
Boles asked 1/6, 2022 at 14:38

3

We have a Ruby on Rails application and this has a "search" functionality (search for some company). From browser user key-in some name and hit search and this search make an rest api call to outsi...
Sellingplater asked 30/3, 2018 at 2:5

3

I'm trying to use Insomnia with Client Certificates. I followed this document from the Insomnia documentation. I added my certificate pem files and password. The problem is that I'm still getting ...
Aerophagia asked 6/6, 2017 at 10:2

2

My API version is 6.3 and I try to create index. The failure says "The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true" .Here is my code: C...
Golconda asked 8/7, 2020 at 20:47

6

Solved

I'm learning about Swagger and how to generate REST Client using Swagger codegen. I know how to do documentation with Swagger, also I know how to generate a simple REST Server with Swagger, but I d...
Verner asked 18/8, 2019 at 15:17

3

Solved

I have Rails 4.1 application with runs on puma web server. I use nginx as a proxy server. Several days ago everything worked very well. I updated my application, and suddenly some POST requests sta...
Regardful asked 11/7, 2014 at 6:42

2

Solved

I'm writing a library to call a third party API so that it can be used by a Rails app. To authenticate, the API initially uses basic auth to return a token which is used for all other requests. Tok...
Whisk asked 19/9, 2019 at 8:24

1

Solved

I need to trigger a Jenkins Job from my Java code.The Jenkins API expects a application/x-www-form-urlencoded Content-Type and I am able to trigger the job (using Basic AUTH) from Postman Rest Clie...
Cooking asked 5/4, 2019 at 10:21

1

I am trying to build a simple Resteasy client, using proxy framework. I am getting a error, "Cannot instantiate the type ResteasyClientBuilder". This is the Client class. package com.Rest...
Hyperbolic asked 30/11, 2020 at 7:3

5

Solved

Does anyone know how to do basic authentication with RestClient? I need to create a private repository on GitHub through their RESTful API.
Radiography asked 11/9, 2010 at 20:37

1

Solved

I am getting the above error when making post request, using spring resttemplate with mutual authentication. @Bean public RestTemplate restTemplate() throws UnrecoverableKeyException, NoSuchAlgor...
Brownson asked 5/12, 2020 at 17:6

1

Spring Framework in RestTemplate documentation has note: NOTE: As of 5.0 this class is in maintenance mode, with only minor requests for changes and bugs to be accepted going forward. Please, cons...
Emancipator asked 14/11, 2020 at 21:43

3

I am trying to use openfire REST-API-Client. I am calling method to add user to the openfire using following code. AuthenticationToken authenticationToken = new AuthenticationToken("username","pas...
Bein asked 4/8, 2017 at 5:31

2

Solved

I have an external REST resource with below details: The URL: abc.com/orders (the domain is with https) I need to pass UserID as an HTTP header with key "user" value is "abcd" This would return a...
Aliquant asked 15/7, 2018 at 11:53

4

Solved

For instance, in the RestClient console: RestClient.post 'http://localhost:5001', {:a => 'b'}, :content_type => 'application/json' This does not send application/json as the content type. ...
Araarab asked 18/11, 2011 at 22:26

1

Solved

Using VSCode Rest Client - How do you pass the value of a variable between variables? @varA = “123” @varB = “234” @varFinal = varA currently it doesn’t pass the value, it sets varFinal to the st...
Viral asked 10/9, 2019 at 15:47

© 2022 - 2024 — McMap. All rights reserved.