title: Add custom url for my web service in wordpress
body: <p>I am new in wordpress and i am creating an extension for wordpress.  I searched a-lot but didn't find any solution. May be my question is duplicate but i didn't find any solution.  My issue is : </p>
  
  <p>I want to create a  custom url for my extension api. Like
  some will post data on that url and i will save data in database. My url should be <code>www.example.com/custom_url</code></p>
  
  <p>There will be no page and no template for my url, it's a kind of web service. </p>
  
  <p>So in my extension i want that when any user install that extension this custom_url will automatically active for them.</p>
  
  <p>I tried <code>add_rewrite_rule</code> , <code>add_rewrite_endpoints</code>  etc. But no success.</p>
  
  <p>please suggest me or provide me any link where it is described.</p>