-
Notifications
You must be signed in to change notification settings - Fork 505
Native API: publish dataset endpoint mismatch (POST vs. GET) in docs vs. code #2431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Huh. Enunciate wasn't really on my radar but I see you did mention it at http://irclog.iq.harvard.edu/dataverse/2015-01-07#i_15039 . (I was thinking more of Swagger back then.) I do love me some documentation. As a first step, it might be interesting to at least compare Enunciate output to our docs as a sanity check. Of course, more integration tests would probably also find mismatches like this. (I'm actually working on writing more right now, which is how I found it.) |
Fixed in pull request #3550. Passing to Code Review at https://waffle.io/IQSS/dataverse |
Now supports POST in addition to GET (so as not to break existing implementations). |
http://guides.dataverse.org/en/4.1/api/native-api.html#datasets says...
... but the method actually takes a GET rather than a POST:
curl -X GET -H "X-Dataverse-key:$API_TOKEN" http://localhost:8080/api/datasets/2675227/actions/:publish?type=minor
Probably it should be a POST, as documented, since we're changing state on the server. Yes, this will break backward compatibility of the Native API but I think it's worth it.
I'll set this issue for the current milestone for now and pass to @scolapasta for assignment.
The text was updated successfully, but these errors were encountered: