I am implementing a headless drupal website with json:api as the gateway to get all the data. I am able to get data by their node ids, but that is only if I knew the node id and type beforehand. Is there anyway to get the content by just using the url path?
For example, if one visits the url https://mywebsite/article/test I need to be able to use jsonapi to get all the data from that url, but because I don't know what the node id is for that url, I won't be able to retrieve those data. So, is there a filter I can use for url path using jsonapi?
Edit: I tried it by using the filter:
and it gives the following error:
Invalid nested filtering. The field
path, given in the path
pathis incomplete, it must end with one of the following specifiers: