Questions tagged [path-parameter]

105 questions
0
votes
1 answer

In a URI, https://www.google.com/items/2 how to get 2 alone (item id) to process further

In a URI, https://www.google.com/items/2 how to get 2 alone (item id) to process further
0
votes
1 answer

Calling API with path parameters

First off, I'm a beginner at working with APIs so apologies if the answer is obvious or if I'm asking for the wrong information. I'm attempting to call an API that will return travel per diem rates based on ZIP and fiscal year. The endpoint is…
ahap13
  • 1
0
votes
2 answers

How to get path parameter in spring cloud function

I have a java application written using spring-cloud-functions and deployed in aws lambda which connects to aws api-gateway I have a 'GET' api(let's say /employees/{employeeId}) which takes an input parameter({employeeId} in this case) and returns…
0
votes
1 answer

REST Server connection reset on Routing path

Question is: Did I define the client resource call correctly, or is there something wrong in the server code? I have a REST API server I am coding in C# / Visual Studio 2019 using the Web API template. I have 2 paths at the moment - a POST and a…
Jay Imerman
  • 4,475
  • 6
  • 40
  • 55
0
votes
1 answer

In rest assured framework,I am sending path params in one request but they are being send with another request as well. How can we remove path params?

@Test(description = "Verify that user is able to login and get the offer details for a particular promo code", dependsOnGroups = "getAuthKey") public void verify_offers_with_login_with_promo_code() { Map headers =…
sharma16
  • 11
  • 1
0
votes
2 answers

How to read the following path from a servlet?

I have a servlet which works on organizations address (@WebServlet("/organizations")). This way using GET or POST method on address .../organizations leads to calling of this servlet. When I need to work with a current organization (for example,…
coder-coder
  • 323
  • 4
  • 13
0
votes
1 answer

Angular router does not load the mine page with the PathParam

I'm studying about Angular and having some router troubles, because I'm trying to access one of the routes with a path parameter and having an error, the page doesn't load. The main page: The routed one: The app.module.ts file: import { NgModule }…
0
votes
1 answer

Running methods depending JSP link using switch statements on Servlets

Hi there I am fairly new to building web pages using JSP and servlets and I'm trying to use switch statements to run functions depending on the link/button the user clicks but every code I've tried fails to run the function or redirect to new page,…
0
votes
1 answer

How to fetch pathParam value in useEffect in React JS

When I pass the teamName hard coded the correct results are showing but want to pass teamName from url using pathParam Code: export const TeamPage = () => { const [team, setTeam] = useState({matches :[]}); const {teamName} =…
Jimmy
  • 995
  • 9
  • 18
0
votes
2 answers

@PathParam: No value being passed

I'm building a REST api using Quarkus and Kotlin. I'm trying to include a path parameter in my function by using the @PathParam annotation. This is what I have: @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{userId}") fun…
0
votes
0 answers

Get Path Param with HTML + JavaScript

I have a simple static HTML that prints the value of the param in queryString: