bedwar12
3 years agoNew Contributor
Adding a number to resource path
Hey everyone,
Sorry if this is a silly question, I'm new to the platform. But I have a few endpoints here that are gonna be used for load testing, and need to be able to handle order numbers in the resource path. For example,
One endpoint is "/v1/status/online" which I have setup fine. But I'd like it to be able to return its normal 200 response when someone hits the endpoint like "v1/status/online/23243223" (some random order number, different every time). What would be the best way to go about this? Another example is I have an endpoint that is "v1/order/status" that needs to be able to return a response to "v1/order/234234(again, random number)/status." Thanks for any help/insights.