CPC G06F 11/3608 (2013.01) [G06F 11/3684 (2013.01)] | 20 Claims |
1. A method, comprising:
generating, by one or more computing devices, using a parser and a modeling language, a domain-specific abstraction model corresponding to a specification of an application programming interface (API), the domain-specific abstraction model defining one or more entities each corresponding to an endpoint of the API and each comprising a path and a set of operations available at the endpoint;
identifying, by the one or more computing devices, based on the domain-specific abstraction model, use cases for each endpoint and each operation in the set of operations at each endpoint, each use case comprising an operation in the set of operations available at the endpoint, a request format, a required parameter, an optional parameter, one or more expected response headers, and an expected response value; and
in response to a build in a development pipeline, the build including an update made to the API by a developer in the development pipeline, generating, by the one or more computing devices, a functional test that for each of the use cases: transmits the operation to the endpoint via the path in the request format with the required parameter and verifies that a received response code matches the expected response value and that one or more headers in a response payload from the API match the one or more expected headers.
|