Questions tagged [http-request-parameters]

The parameters that are mapped to the servlet request when they are parsed from the http request.

The parameters that are mapped to the servlet request when they are parsed from the http request. These parameters represent a query string when a method GET is used and a body of the request if a method POST is used.

276 questions
0
votes
0 answers

Multiple simoultaniously rendered components with data fetched from server mixes up data - Chaining firebase verifyIdToken & database query

I want to populate a grid with many different chart components (Chart1.js, Chart2.js, and so on ...) in react (using "react": "^18.2.0"). For these chart components, I reuse multiple components, including the FetchData.js component which fetches the…
smaica
  • 723
  • 2
  • 11
  • 26
0
votes
0 answers

Dependent RequestParam validation in Spring boot

I have a scenario where I have to rename one required request param. My application is already live. I want to deprecate the existing request param and want to add new request parameter. So my existing applications will be sending me the old request…
0
votes
0 answers

How to use Postman to test POST API with request parameter List & List

I cannot find an suitable way to test API with the request parameter whose data type is List https://blog.csdn.net/a907691592/article/details/107051586 For my POST API, the request parameters are List s and List d I have tried…
Ricky
  • 1
  • 1
0
votes
0 answers

Dynamic search by entites with inheritance

In my service I created abstract class ShapeEntity with two abstract methods. @Entity @Inheritance(strategy = TABLE_PER_CLASS) public abstract class ShapeEntity { @Id private String id = UUID.randomUUID().toString(); public abstract…
Lulex97
  • 231
  • 1
  • 10
0
votes
1 answer

Handling multiple possible @RequestParam values when making request

I have an endpoint to get all Posts, I also have multiple @RequestParams used to filter and search for values etc. The issue I'm having is that when trying to filter based on specific @RequestParams, I would need to have multiple checks to see…
0
votes
3 answers

How to encode '%' in request param

I want to pass request parameter in spring API as %3 ST% I send this request via postman like %253 ST% This works as expected. The problem is that I need to pass this from one microservice to another via REST API. Both applications are built on…
user82504
  • 111
  • 1
  • 12
0
votes
3 answers

How to add dynamic search by request param

How should I correctly implement dynamic searching in my rest api request? My rest api is divided into Controller -> Service -> Repository. I created GET request to get all drivers from database: @GetMapping public ResponseEntity>…
Lulex97
  • 231
  • 1
  • 10
0
votes
0 answers

Creating custom requestParam in springboot controller

i have a use case where the user can send following params with get request GET localhost/8080/users?filter=alex OR GET localhost/8080/users?suffixFilter=lex OR GET localhost/8080/users?prefixFilter=a is it possible to add only one request param…
Catalina
  • 663
  • 5
  • 20
0
votes
0 answers

Adding Optional Request Parameters in Java Spring Boot

I am trying to filter the api by using four parameters: cloud provider, region, customer name and SAN. When I send a GET request via Postman I can only seem to get a successfull HTTP response if I pass all four parameters into the url. How can I…
Silvia
  • 1
0
votes
0 answers

startDate comes before endDate in swagger Is there any way to preserve the order, or even specify the order

Actual Result: endDate comes first then startDate comes next. Expected Result: startDate comes first then endDate. Is there any way to specify the requestParameter order? This is the Actual Result public ResponseEntity
0
votes
1 answer

Move a param from the URL to the body

I need to avoid sending a note as a request param in a Post operation. To do so I need to move it from the url to the body but I don't know how. Here is the code: @PostMapping(value = "/person/{cuco_id}/notes/{typeNote}/**{note}**", produces = {…
DiegoMG
  • 383
  • 1
  • 4
  • 18
0
votes
2 answers

How to set required=false on a (int or boolean) @RequestParam without default value?

I need a rest get method that search books by multiple optional parameters. This is the method: @GetMapping("/all") public ResponseEntity>> findByAll(@RequestParam(value = "title") String title, …
0
votes
1 answer

Typing does not work when creating a map in Kotlin through spring boot @RequestParam

I am using spring boot and have made the following controller where I explicitly specify key and value types. @PostMapping("DAC/set") fun setDac(@RequestParam map: HashMap): ResponseEntity { println(map) …
0
votes
2 answers

Spring GET method how to raise Exception if an unknown request param in controller

So I have in my controller a GET method with optional request params: @GetMapping(path = "/users/search") public @ResponseBody ResponseEntity> getUserLike( @RequestParam(name = "id", required = false) Long id, …
eln
  • 63
  • 3
  • 12
0
votes
2 answers

How to handle multiple request params in spring boot?

Suppose I have a Employee class. It has got many fields like id, firstName, lastName, designaton, age, salary and other fields too. Now I am making a Get Query where I want to use all of these fields (required=false) to be passed as Request…