Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshnuss/http-shark
An HTTP proxy & GUI for recording/debugging REST API calls.
https://github.com/joshnuss/http-shark
Last synced: about 1 month ago
JSON representation
An HTTP proxy & GUI for recording/debugging REST API calls.
- Host: GitHub
- URL: https://github.com/joshnuss/http-shark
- Owner: joshnuss
- Created: 2014-10-15T02:10:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-20T18:53:29.000Z (about 10 years ago)
- Last Synced: 2024-04-14T03:14:19.667Z (7 months ago)
- Language: CSS
- Homepage:
- Size: 9.19 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP Shark
An HTTP proxy & GUI for debugging REST API calls.
## How it works
Redirect your live API traffic thru the proxy, each request is recorded in mongodb and can be viewed in realtime via the dashboard.
## Installation
```
git clone http://github.com/joshnuss/http-shark.git
```## Usage
### Start server
```
MONGO_URL=mongodb://localhost:27017/proxy PORT=80 node .
```### Add a subdomain
There are two ways to do this:
In your `/etc/hosts` add an entry for the proxy:
```
# you can proxy multiple subdomains at once
127.0.0.1 paypal-proxy.local.dev
127.0.0.1 fedex-proxy.local.dev
```Or if the proxy is deployed on a host (i.e. example.com), setup a DNS entry for a wildcard domain (i.e. *.example.com).
### Redirect traffic
There are two ways to do this:
Either add a redirection in your `/etc/hosts`
```
paypal-proxy.local.dev api.paypal.com
```Or find and replace the URL in your code, example:
```coffeescript
http.get('http://api.paypal.com/things')
# becomes:
http.get('http://paypal-proxy.local.dev/things')
```### Visit the dashboard
The dashboard is available at `http://:/dash`
## License
MIT
## Author
Joshua Nussbaum