Publication | Closed Access
A study of the effectiveness of usage examples in REST API documentation
55
Citations
16
References
2017
Year
Unknown Venue
Web Service SpecificationRest Api DocumentationInformation RetrievalRest Api DevelopersReference ModelSemantic WebUsage ExamplesOpen Api
Generating and maintaining REST API documentation with usage examples can be a time consuming and expensive process for evolving APIs. Most REST API documentation tools focus on automating the documentation of the API objects, but require manual effort for capturing usage examples. Consequently, REST API developers need to know the cost vs. benefit of providing usage examples in the documentation to prioritize the documentation efforts. To this end, we have performed a controlled study with 26 experienced software engineers to understand problems that REST API client developers face while using an API without usage examples. We found that REST API client developers face productivity problems with using correct data types, data formats, required HTTP headers and request body when documentation lacks usage examples. By following the REST API documentation suggestions from this paper, REST API developers can reduce the errors, improve success rate and satisfaction of API client developers.
| Year | Citations | |
|---|---|---|
Page 1
Page 1