How to call a a REST API method with a dash "-" in the method name?

1.6k views Asked by At

I am trying to communicate with a REST API using cURL and PHP. The problem is that one of the methods that I want to call has a dash "-" in its name.

Every time I call this method I get this error HTTP Code: 405 Specified method is not allowed for this resource.

This is the URI that I am posting data to is /directories/lookup-entries

What can I do to properly POST data to this API

0

There are 0 answers