I think I figured out what the problem is, but still don't know the solution. When I make a POST to the dataverses endpoint without specifying a dataverse (that is, http://
sandbox.vdc.ac/api/dataverses/) it returns a 405 error:
Failed to open stream: HTTP request failed! HTTP/1.1 405 Method Not Allowed
Interestingly, if I specify a dataverse (for example the root or a subverse such as http://
sandbox.vdc.ac/api/dataverses/test) the server seems to convert the method to GET and returns the usual descriptive information about the dataverse.
So here is the question: is there a setting in Dataverse that enables or disables methods used against endpoints in addition to the endpoints themselves? Is it possible that this is a user restriction (I login as a Dataverse admin)? Alternatively, is there an underlying setting that effectively blocks certain methods even though that is not its primary purpose?
Any and all brainstorming would be warmly welcomed.
Thanks. Frank