Questions tagged [path-parameter]
105 questions
2
votes
1 answer
AngularJS resource optional path parameters
I'm using an AngularJS $resource factory to access a client REST services. Some of the parameters are defined with optional path parameters rather than query parameters.
Case 1:
I call myUrl/application-:applicationID/limit-:limit.json
with:
{
…

user3279701
- 21
- 1
- 3
1
vote
0 answers
Discrepancy between reactive and non-reactive Quarkus JAX-RS endpoints wrt URL decoding of PathParam
After migrating an existing webapp from DropWizard to latest Quarkus (3.1, resteasy-reactive), things are working well except for some edge cases we have found.
One in particular looks like possible bug: handling of URL path parameters wrt decoding…

StaxMan
- 113,358
- 34
- 211
- 239
1
vote
0 answers
Filter out / remove extension from spring rest api
I had to upgrade the dependencies of a project from:
org.springframework.boot
spring-boot-starter-parent
2.2.4.RELEASE
To the version…

Jakkins
- 115
- 11
1
vote
1 answer
Is there any way to validate path parameters in AWS API Gateway?
I'm using AWS API Gateway to create an api.
I have the following path for an API: /users/{id}
Is there a way to validate the existence of id in the API request made and maybe its type in API Gateway before it reaches the Lambda integration? I…

Marwan Ghazala
- 11
- 2
1
vote
1 answer
How to pass path param to httptest request
I am writing the unit test case for my http APIs, i need to pass the path param to the API endpoint
GetProduct(w http.ResponseWriter, r *http.Request) {
uuidString := chi.URLParam(r, "uuid")
uuid1, err := uuid.FromString(uuidString)
if…

Anshul Sharma
- 1,018
- 3
- 17
- 39
1
vote
1 answer
Using path paramater in karate URL- special character
I have to use this value as path parameter 6425716f2f8541d5afd52a6e7321743b%2Fv3
It should look like this
GET https://abc123.com/policyNumber/6425716f2f8541d5afd52a6e7321743b%2Fv3
However it is getting changed to…

Sheikh Rahman
- 895
- 3
- 14
- 29
1
vote
1 answer
How is path parameter name conflicts handled in react-router-dom?
home/user/:id/friends/:id
function SomeComponent() {
const { id } = useParams();
}
Which id will be used here? There are name conflicts.

Bear Bile Farming is Torture
- 4,317
- 4
- 27
- 61
1
vote
1 answer
How to send Multiple values in GET request using CSV in Serenity BDD framework
How to pass CSV with multiple values in GET Request.
When I am tried to pass the values as below its not giving the response properly.please help here to get the response.
For Eg: My CSV file contains ID's: 15,16,20
How can I pass this ID's in GET…

Charlotte Ryerr
- 39
- 6
1
vote
1 answer
OpenAPI duplicate paths
There are two paths in an OAS 3.0 specification. Technically both seem to be identical, I need to confirm if indeed both are identical.
If yes, why none of the tools out there validates these types of paths…

Ali Raza Abbasi
- 69
- 7
1
vote
1 answer
FastAPI: passing path params via included routers
In symplified case we've got a projects and files. Files belong to projects. Every of them has their own router to perfom CRUD actions via API.
So, in code it should look like this:
from fastapi import FastAPI, APIRouter
app =…

Dominux
- 237
- 3
- 14
1
vote
1 answer
location.href is adding a / before pathparam?
I am trying to use location.href to a folder where a index.php file is located!
So when I am use location.href = "databases?page=settings"; it redirects me to
/databases/?page=settings. Why is Javascript adding a / before the pathparameter?

Stefan Scharinger
- 36
- 4
1
vote
1 answer
How to map undefined amount of path parameters to request parameters in Ocpsoft Rewrite?
Currently I´m trying the following JSF - Lib:
https://www.ocpsoft.org/rewrite/examples/
I have the following issue:
I have a page:
/page.jsf
In my page I have more then only one parameter.
E.g. I have:
- parameter1
- parameter2
String parameter1 =…

vished2000
- 164
- 1
- 11
1
vote
3 answers
Running a Powershell command with a variable -Path parameter
Can someone please explain the following behaviour to me?
PS C:\Users\Kenny> $filePath = "C:\\Complicated.File.Path.That.Has.Special-Chars`[but-no.spaces`]and.definitely.exists\"
PS C:\Users\Kenny> cd $filePath
cd : Cannot find path…

Kenny83
- 769
- 12
- 38
1
vote
3 answers
How to get path parameters from path using Java
I have a path /departments/{dept}/employees/{id}. How do I obtain dept and id from path /departments/{dept}/employees/{id}?
For example, I would like to obtain dept1 and id1 if path is /departments/dept1/employees/id1
I tried
String pattern1 =…

user3706481
- 51
- 2
- 7
1
vote
0 answers
How to handle path parameter urls in HandleHttpRequest in Nifi
I am calling Nifi's HandleHttpRequest Processor with dynamic Url i.e. with path parameters, for which this processor is not listening to such url.
I am looking for any solution which can help me listen path parameters to HandleHttpRequest…

Varun Soni
- 55
- 6