Concept - apidocco.com exposes a restful url, that allows you to supply an API id and a base URL to test against. Apidocco automatically calls all the urls in API schema built here and prepends them with the requested base URL. Then you can simply throw into your server build scripts an assertion to check that all the described API calls are actually met by the server.
Type | Resource | Request | Request Body | Status code | Request Response |
---|---|---|---|---|---|
<%= method.type %> | <%= method.resource %> | <%= method.requests[0].name %> | <%= method.requests[0].request %> | <%= method.requests[0].statusCode %> | <%= typeof method.requests[0].actualResponse === 'string' ? method.requests[0].actualResponse : JSON.stringify(method.requests[0].actualResponse) %> |