Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork91
Automated Integration Testing and Live Documentation for your API
License
scanapi/scanapi
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A library foryour API that provides:
- Automated Integration Testing
- Automated Live Documentation
Given an API specification, written in YAML/JSON format, ScanAPI hits the specifiedendpoints, runs the test cases, and generates a detailed report of this execution - which can alsobe used as the API documentation itself.
With almost no Python knowledge, the user can define endpoints to be hit, the expected behaviorfor each response and will receive a full real-time diagnostic report of the API!
$ pip install scanapi
You will need to write the API's specification and save it as aYAML orJSON file.For example:
endpoints: -name:scanapi-demo# The API's name of your APIpath:http://demo.scanapi.dev/api/v1# The API's base urlrequests: -name:list_all_users# The name of the first requestpath:users/# The path of the first requestmethod:get# The HTTP method of the first requesttests: -name:status_code_is_200# The name of the first test for this requestassert:${{ response.status_code == 200 }}# The assertion
And run the scanapi command
$ scanapi run<file_path>
Then, the lib will hit the specified endpoints and generate ascanapi-report.html file with the report results.
The full documentation is available atscanapi.dev
Get started with ScanAPI by following ourstep-by-step tutorial.
You can find complete examples atscanapi/examples!
This tutorial helps you to create integration tests for your REST API using ScanAPI
Collaboration is super welcome! We prepared theNewcomers Guide to help you in the first steps. Every little bit of help counts! Feel free to create newGitHub issues and interact here.
Let's build it together 🚀🚀
Made withcontrib.rocks.
About
Automated Integration Testing and Live Documentation for your API
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.





