koind / proxy

Simple service on Go for proxying HTTP requests to third-party services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proxy

Simple service for proxying HTTP requests to third-party services.

How to use

To run the required command in terminal:

make run

To check the methods and view the documentation, follow the link:

http://localhost:8080/swagger/index.html

To stop the service, run the following command in the terminal:

make down

Request samples

cURL samples can be run from command line

/

curl -X POST -H "Content-Type: application/json" -d '{ "method": "GET", "url": "http://google.com", "headers": { "Authentication": "Basic bG9naW46cGFzc3dvcmQ="," } }' http://localhost:8080

/ping

curl -X GET 'http://localhost:8080/ping'

/history

curl -X GET 'http://localhost:8080/history'

About

Simple service on Go for proxying HTTP requests to third-party services.


Languages

Language:Go 95.3%Language:Dockerfile 2.8%Language:Makefile 1.9%