How to create a custom route in wordpress?

admin

Administrator
Staff member
I'm working on this wordpress site and trying to connect this website with an external API.

I need to create a custom route for reading properties, But so far I didn't find an answer.

The URL I'm trying to config is this one:

www.mypage.com/properties/id_description1

And it should point to a php template called (property-single.php).