Using Endpoint Pathnames Instead Of Query Parameters

I’m new to MongoDB Atlas. Having been a WordPress user for many years, I’m wondering if it’s possible to mimic the WordPress REST API inside Atlas as it pertains to custom HTTPS endpoints?

For example, when creating a custom API endpoint in WordPress, pathnames can be defined as follows: /my/restful/path/item/(?P<id>[0-9]+). So when you call the endpoint /my/restful/path/item/123, the result is the same as if you called /my/restful/path/item?id=123.

Ultimately, I trying to use endpoint paths as the means of querying data instead of having to rely on query parameters. Does anyone know if this is possible? If it’s not, how are query parameters passed to the endpoint functions? Any advice would be greatly appreciated. Cheers :beers:

1 Like

Is this possible?

I am also stuck with the same problem.

Still trying to figure it out. No luck yet.