just-api
examples
Our great sponsors
just-api | examples | |
---|---|---|
4 | 2 | |
812 | 636 | |
- | 2.5% | |
0.0 | 6.7 | |
over 1 year ago | 8 days ago | |
JavaScript | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
just-api
-
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.
- Show HN: Functional Testing of APIs with YAML
-
Front End UI Test Automation With Mock API
To test the API, I recommend a proper API testing framework that can run a full test suite without you having to write a single test case. In this area, I recommend Dredd and schemathesis. These frameworks will get you covered when it comes to ensuring that the API server complies with the API specification. You may find Dredd a bit confusing at the beginning, in which case I recommend a tutorial I wrote a while ago about testing with Dredd. In addition, you can consider using just-apis, which allows you to define your own test cases for the API in YAML files (so no programming required).
- Show HN: Test APIs with YAML
examples
-
How we use Apollo to manage GraphQL data in our React Typescript application
Did you evaluate mock-service-worker? It's a good solution to mocking API requests. When it executes in the browser it uses a service worker to intercept requests, and when it executes in node (e.g. unit tests) it patches the http.Request methods to effectively do the same. Here's an example for mocking Apollo: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo
-
Beginners Thread Easy Questions February 2021
I use https://mswjs.io/, here is also an example project that can become handy: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo . Reading this article could also help: https://kentcdodds.com/blog/stop-mocking-fetch
What are some alternatives?
Schemathesis - Automate your API Testing: catch crashes, validate specs, and save time
open-api-mocker - A mock server based in OpenAPI Specification
LndHub - Wrapper for Lightning Network Daemon. It provides separate accounts for end-users
testing-nestjs - A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!
prism - Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
puppeteer-request-mocker - Request mocker for puppeteer
dredd - Language-agnostic HTTP API Testing Tool
contentful-graphql-vs-rest - A look at the difference between how to fetch and render linked assets and entries in the Rich Text field in Contentful.
anvil-e-signature-api-node-example - An example app used to showcase Anvil Etch E-Signature API using the node-anvil client.
godog-http-api - Skeleton that allows to write E2E tests for HTTP API with use of framework godog and test library gdutils.
Strapi - 🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first.