An open API service indexing awesome lists of open source software.

https://github.com/kenshin579/echo-server

Echo Server in golang
https://github.com/kenshin579/echo-server

api echo go golang server

Last synced: 4 months ago
JSON representation

Echo Server in golang

Awesome Lists containing this project

README

          

# Echo Server

This is a simple HTTP Echo server. If you send a request value to the API, the server will return the exact same value for the response.

## Usage

### 1. Build

The build option has already been added to the Makefile file, so you can simply build with the command below.

```bash
$ make package
```

### 2. Running the server

```bash
$ go run cmd/server/main.go
```

### 3. Running under Docker

The server can also run with a docker image.

```bash
$ make docker-run
```

## Swagger

The swagger is already included in the source code, so you can just access from the local machine.

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

![image-20230313002636195](assets/image-20230313002636195.png)