I would like to user definde api’s to integrate a trouble ticket system.
For that I need to provide an endpoint where I can do a http get to a “/troubleTicket” endpoint to retreive all tickets where the query parameters allow for some filtering.
However another endpoint “/troubleTicket/{id}” should allow to only request the information of that single ticket.
Is this possible with the User defined API’s? having the last part of the path being dynamic and parsed by the automation script?
Tim Vandenbruwaene [SLC] [DevOps Enabler] Selected answer as best 26th August 2024
Hi Tim,
It’s not possible to have a (part) of the URL path be dynamic in User-Defined APIs. I suggest that you either use a query parameter to pass the ticket ID or use the request body.
Tim Vandenbruwaene [SLC] [DevOps Enabler] Selected answer as best 26th August 2024