Category "rest"

How do we implement q Params in Helidon SE

I am new to Helidon SE and would like to know if there is a way to implement q params in REST service created via Helidon SE. Any help in this regard is truly a

Resolving Pageable in Webflux

I spent a lot of time to find a solution about Pageable in Webflux, unfortunately, at the time of writing this, Webflux does not support Pageable so I came up w

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

GuzzleHttp Hangs When Using Localhost

Here is a simple code snipplet but this just hangs and unresponsive. $httpClient = new GuzzleHttp\Client(); // version 6.x $headers = ['X-API-KEY' =&g

ElasticSearch Access-Control-Allow-Headers header is not present

I am making a POST request from a local https server to an ElasticSearch endpoint which has been configured as follows http.cors.enabled: true http.cors.allow-

Jersey REST get returns java.lang.NoSuchMethodError

I'm trying to get a response from a working REST webservice. I have come up with the following looking at the documentation: void postRest() { Client clie

Mixed named and unnamed function parameters

I have this function for authenticating JWT tokens (not middleware), which says: package main import ( "net/http" "log" "fmt" "github.com/dgrijalva/jwt-go" )

Not-null property references a transient value - transient instance must be saved before current operation

I have 2 domain models and one Spring REST Controller like below: @Entity public class Customer{ @Id private Long id; @OneToOne(fetch = FetchType.EAGER) @Joi

Testing gin based REST API not getting params while using net/http/httptest

I am developing a REST API based on Gin Go, the endpoint looks something like below: func carsByType(c *gin.Context) { fmt.Println("Go Request in Handler...

Slack API users.list doesn't return all users

The following api to get all users in a workspace doesn't return all users. https://api.slack.com/methods/users.list I thought may be its a limit thing but nope

Header parameters: "Accept" and "Content-type" in a REST context

I understand that the Accept parameter define a data type expected in a client response sent from the server, so it's used as a response header. My question is

RestSharp - Authorization Header not coming across to WCF REST service

I am trying to call a locally hosted WCF REST service over HTTPS with basic auth. This works and the Authorization header comes thru just fine and all is happy

Magento 2 - Custom rest api endpoint for PDF download - net::ERR_HTTP2_PROTOCOL_ERROR 200

I have created custom rest api endpoint in magento for downloading pdf file. When testing it locally: From separate react JS project I am sending request to th

Magento 2 - Custom rest api endpoint for PDF download - net::ERR_HTTP2_PROTOCOL_ERROR 200

I have created custom rest api endpoint in magento for downloading pdf file. When testing it locally: From separate react JS project I am sending request to th

How to hide HTTP Header Manager for a image upload post API in jmeter

I create two HTTP request, both post REST API. One of the API content-type is "application/json" for which I have added HTTP Header manager. My other API is for

GO storing data returns EOF

I'm new to golang and I'm trying to build rest api, So far GET endpoints are working for me fine, but I'm having difficulties with POST method(creating user): T

Using client certificates in ReactJS

we are building a React UI platform website. We need to call a third party RESTFul service which requires us to attached a client certificate for authentication

passing binary data to rest-api

I want to upload a thumbnail to viemo api , and based on Vimeo doc, I must include the thumbnail file as binary data in the request body, I have to upload the t

How to generate java client code for swagger REST API documentation

My scenario is the following. I have a swagger .json eg.: http://petstore.swagger.io/v2/swagger.json I want to use a generated java client for the REST API abo

Passing a DTO and other values in @RequestBody in Spring

I want a pass a dto and another value using the @RequestBody in spring. Something like shown in below,(This is my controller code) public User createUser( @Req