Skip to content

Puter-Apps/api-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple web-based API testing tool that allows you to test HTTP APIs, similar to Postman or Insomnia.

Screenshot


Features

  • Multiple HTTP Methods: Support for GET, POST, PUT, DELETE, PATCH, HEAD, and OPTIONS requests
  • Custom Headers: Add and manage custom HTTP headers for your requests
  • Request Body Support: Send JSON, text, or other data in request bodies
  • Response Visualization: View formatted JSON responses with syntax highlighting
  • Response Metrics: See response status codes, status text, and response times
  • Modern UI: Clean, responsive interface that works on all devices
  • No Installation Required: Runs directly in your browser

Getting Started

Clone the repository:

git clone https://github.com/puter-apps/api-tester.git

and open the /src/index.html file in your browser.


How It Works

API Tester leverages Puter.js to overcome the fundamental challenge of cross-origin requests in web browsers. Traditional web applications are restricted by CORS (Cross-Origin Resource Sharing) policies, which prevent direct API calls to external domains from browser-based JavaScript.

Specifically, the application uses puter.net.fetch() to make cross-origin HTTP requests and bypass CORS restrictions. This allows the app to test any public API endpoint without server-side configuration.


License

MIT

About

A simple web-based API testing tool that allows you to test HTTP APIs, similar to Postman or Insomnia.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published