DEV Community

Kiran
Kiran

Posted on • Updated on

REST, GraphQL API testing with declarative YAML specs

would like to introduce Just-API, An open source framework that I built to help people with testing APIs.

What is Just-API?

Just-API is a specification based framework to test REST, GraphQL (or any HTTP-based) APIs. It takes API suite specification from YAML files and runs them either in serial mode or in parallel mode as instructed by the user.

What’s special about Just-API?

It’s declarative, and allows user to test APIs with no code. But a user can always tap into code when they want to.

Why Just-API?

There are several tools available that offer nice UI to test APIs, but none of them really handle complex API test automation flows. Often people go back to programming to test complex flows. So why not a framework that allows users to test complex API scenarios with minimal coding, parallel execution and built-in response validation constructs with some nice reporting.

How does it work?

In simple terms, users build suites by providing request and response validation specification in a YAML suite. Just-API builds the request, makes a call to server and validates response as per the specification. You can choose to validate any or all of

Response Status code
Response Headers,
Response JSON body
Response JSON schema
Enter fullscreen mode Exit fullscreen mode

or Provide your own custom Javascript validator functions.

See documentation here

Github repo

Top comments (0)