-
Notifications
You must be signed in to change notification settings - Fork 492
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
Review Native API Documentation #2174
Comments
Suggestion for Native API documentation: data samples for every endpoint that include a note saying which parameters are required, optional and ignored. I currently have to go into the code to find what fields are required or ignored. (Edited to clarify "level of requiredness") |
@bmckinney is playing with Swagger (i.e. He gave me a demo yesterday and it looks really nice. |
I was telling @pameyer today that at the very least, the native API docs should have descriptions of the various endpoints at the top of the page like SWORD does: Without these headings, it quite hard to find stuff. In addition, the native API docs should be split into multiple pages. That's why I put the Search API on it's own page. It's overwhelming to have so much on one page, especially if we provide more JSON examples, which we should. |
Related: #3624 |
Error message can sometimes be clearer:
|
Are there any developments in regards to a Swagger/OpenAPI definition (or similar) for the Native API? |
@RightInTwo nope. As I said above on April 1st, 2016, one of us played with adding Java annotations ( We are definitely open to pull requests! The main thing I want for this issue is not necessarily Swagger but to split the long "native" API into multiple pages, one for "Dataverses", one for "Datasets", one for "Admin", etc. We should also have a "greatest hits" or FAQ of common operations such as:
As of http://guides.dataverse.org/en/4.11/api/native-api.html here's how many operations are on that one page: |
@RightInTwo these days there's an issue to track: Use OpenAPI standard for Dataverse API's (Swagger) #5794 And there is a development in the sense that we learned that if we upgrade from Glassfish 4 to Payara 5, we can get Swagger/OpenAPI compatible output automatically. Please see #5794 (comment) and #5155 (comment) I mentioned this in pull request #6107, which I made yesterday. Since that pull request was about making the API Guide better, I'm going to go ahead and close this issue. Anyone reading this is welcome to open new issues about how to improve the API Guide. Also, pull request #6107 hasn't been merged yet and feedback is welcome! |
From @pdurbin #1489 (comment)
The text was updated successfully, but these errors were encountered: