Company
Date Published
Author
Faria Rehman
Word count
635
Language
English
Hacker News points
None

Summary

APIMatic’s code-gen engine now supports automatically generating test cases for APIs using example objects from RAML and API Blueprint formats. This feature utilizes detailed request and response example objects to generate test cases, making it easier for developers to test their APIs. Both RAML 0.8 and RAML 1.0 support example objects for various resource parameters and responses, allowing developers to specify example values for query parameters, URI parameters, body parameters, form parameters, and expected responses. The "example" property in RAML 0.8 and the "examples" property in RAML 1.0 can be used to specify these example values, with the latter providing more flexibility by allowing multiple examples to be specified. By using APIMatic's code-gen engine, developers can automate the process of generating test cases for their APIs, reducing manual testing efforts.